projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78785e5
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Wed, 2 Jan 2013 06:18:10 +0000
(14:18 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 2 Jan 2013 06:18:10 +0000
(14:18 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
d29a33a
..
fd29d91
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-74,8
+74,9
@@
GitLogParser = {
hours[hour][project].total += line.span;
hours[hour][project].items.push(line);
-
-
+ shours[hour] = (typeof(shours[hour]) == 'undefined') ? {} : shours[hour];
+ shours[hour][line.desc] = (typeof(shours[hour][line.desc] ) == 'undefined') ? 0 : shours[hour][line.desc] ;
+ shours[hour][line.desc] += line.span;
}
return hours;