projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f025b2
)
GitLogParser.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 1 Aug 2012 23:41:47 +0000
(07:41 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 1 Aug 2012 23:41:47 +0000
(07:41 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
0dbad7f
..
e72cd1a
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-38,7
+38,7
@@
GitLogParser = {
var hours = {};
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
- var hour =
hours[line]
.start.format('H');
+ var hour =
line
.start.format('H');
hours[hour] = (typeof(hours[hour]) == 'undefined') ? {} : hours[hour];
hours[hour][project] = (typeof(hours[project]) == 'undefined') ?
{ total : 0, items : [] }