projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ec0b6
)
GitLogParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:50:16 +0000
(22:50 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:50:16 +0000
(22:50 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
7099603
..
4bf51cc
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-45,10
+45,12
@@
GitLogParser = {
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
var hour = line.start.format('H');
- var project = line.project;
-
+ if (line.project == 'IDLE' && line.spanMin > 5 ) {
+ line.project = 'LONGIDLE';
+ }
+ var project = line.project;
hours[hour] = (typeof(hours[hour]) == 'undefined') ? {} : hours[hour];
hours[hour][project] = (typeof(hours[hour][project]) == 'undefined') ?
{ total : 0, items : [] }