projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89cbbef
)
GitLogParser.js
author
Alan Knowles
<alan@roojs.com>
Fri, 28 Apr 2017 02:44:23 +0000
(10:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 28 Apr 2017 02:44:23 +0000
(10:44 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
27d8bbe
..
8b4896f
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-205,6
+205,21
@@
GitLogParser = {
},
+ match_project : function(line) {
+ for(var proj in this.regexes) {
+ for(var r in this.regexes[proj]) {
+ if (line.match(this.regexes[proj][r])) {
+ //print("Match " + proj + " on " + r + ret.line + )
+ return proj;
+
+ }
+ }
+
+ }
+ return "Unknown";
+ },
+
+
'/usr/bin/perl' : function(ret) {
if (ret.title.match(/^PAC/)) {
ret.project = 'Unknown';