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