GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:25:42 +0000 (12:25 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:25:42 +0000 (12:25 +0800)
GitLogParser.js

index 153d9f5..a3861f1 100644 (file)
@@ -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 );
+                     
+            }
         }
         
-        
     }
     
 }