projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d2b0a5
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:40:27 +0000
(12:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 3 Apr 2017 04:40:27 +0000
(12:40 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
cc3b183
..
d267a82
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-312,9
+312,9
@@
var hsum = [];
for (var desc in totals) {
hsum.push({ desc : desc, tot : totals[desc] });
}
for (var desc in totals) {
hsum.push({ desc : desc, tot : totals[desc] });
}
-
hsum
.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
-print("\n\n
Day Total
");
-
hsum
.forEach(function(r) {
+
unknown
.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
+print("\n\n
Unclassified
");
+
unknown
.forEach(function(r) {
print (" " + (r.tot.toFixed(2)*1) + " : " + r.desc);
});
print (" " + (r.tot.toFixed(2)*1) + " : " + r.desc);
});