From: Alan Knowles Date: Mon, 3 Apr 2017 04:25:42 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=24a5e0b8612dc01c7d5f4cf0adeb6e998e750e51 GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index 153d9f5c..a3861f1e 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -257,13 +257,17 @@ for (var h in res) { //print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p ); totals.work += Math.floor(res[h][p].total/60000) ; - for (var k in res[h][p].items) { - - //print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line ); + + if (h == -1) { + + print( "\n" + p ':'); + for (var k in res[h][p].items) { + print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line ); + + } } - } }