projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444e8d1
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Wed, 2 Jan 2013 06:24:40 +0000
(14:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 2 Jan 2013 06:24:40 +0000
(14:24 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
10ea2d6
..
1cea049
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-228,7
+228,7
@@
for (var h in GitLogParser.shours) {
for (var desc in GitLogParser.shours[h]) {
hsum.push({ desc : desc, tot : (GitLogParser.shours[h][desc]/60000).toFixed(2)*1 })
}
- hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot
>
b.tot ? 1 : -1 });
+ hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot
<
b.tot ? 1 : -1 });
print(h+':');
hsum.forEach(function(r) {
print (" " + r.tot + " : " + r.desc);