projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25e4b96
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:39:54 +0000
(12:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:39:54 +0000
(12:39 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
9f7f04d
..
cc3b183
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-258,7
+258,7
@@
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) ;
-
+ var unknown = [];
if (h == -1) {
print( "\n" + p + ':' + Math.floor(res[h][p].total/60000) + 'm');
if (h == -1) {
print( "\n" + p + ':' + Math.floor(res[h][p].total/60000) + 'm');
@@
-269,6
+269,13
@@
for (var h in res) {
print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k );
print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k );
+ }
+ } else {
+
+ for (var k in res[h][p].items) {
+ unknown.push({ desc : k , tot : (res[h][p].items[k]/60000).toFixed(2)*1 }) ;
+
+
}
}
}
}
}
}