From: Alan Knowles Date: Fri, 28 Apr 2017 02:45:14 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=23b4cf239953664f5658917d89dd777dff4d1daf GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index 8b4896f5..5125189b 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -332,7 +332,9 @@ for (var h in GitLogParser.shours) { hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 }); print("\n\n" + h+': Total (' + htot +')'); hsum.forEach(function(r) { - print (" " + r.tot + " : " + (r.project == "Unknown" ? "???" : '') + r.desc); + var pr = GitLogParser.match_project(r.desc) == "Unknown" ? '???' : ''; + + print (" " + r.tot + " : " + pr + r.desc); }); }