From: Alan Knowles Date: Wed, 2 Jan 2013 06:17:13 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=78785e5540dc30f0c68ec246c24a4dfea91ac446 GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index c9db2bb5..d29a33a4 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -62,6 +62,9 @@ GitLogParser = { if (line.project == 'IDLE' && line.spanMin >= 5 ) { line.project = 'LONGIDLE'; } + if (line.project == 'IDLE' || line.project == 'LONGIDLE') { + line.desc = line.project; + } var project = line.project; hours[hour] = (typeof(hours[hour]) == 'undefined') ? {} : hours[hour]; @@ -70,6 +73,10 @@ GitLogParser = { : hours[hour][project]; hours[hour][project].total += line.span; hours[hour][project].items.push(line); + + + + } return hours;