projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fcaf67
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:37:27 +0000
(12:37 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:37:27 +0000
(12:37 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
807f98f
..
9f7f04d
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-261,12
+261,15
@@
for (var h in res) {
if (h == -1) {
- print( "\n" + p + ':');
+ print( "\n" + p + ':'
+ Math.floor(res[h][p].total/60000) + 'm'
);
-
for (var k in res[h][p].items
) {
-
- print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k );
+
if (p != 'Unknown'
) {
+
+ for (var k in res[h][p].items) {
+ print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k );
+
+ }
}
}