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