projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84e3501
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:25:42 +0000
(12:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:25:42 +0000
(12:25 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
153d9f5
..
a3861f1
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-257,13
+257,17
@@
for (var h in res) {
//print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p );
totals.work += Math.floor(res[h][p].total/60000) ;
//print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p );
totals.work += Math.floor(res[h][p].total/60000) ;
- for (var k in res[h][p].items) {
-
- //print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line );
+
+ if (h == -1) {
+
+ print( "\n" + p ':');
+ for (var k in res[h][p].items) {
+ print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line );
+
+ }
}
}
-
}
}
}
}