Permalink
Browse files

Parses git-svn-id commits

  • Loading branch information...
1 parent 5fb1867 commit f36ec85e4aeb03b4db4d6810a8e2487207c3fa23 @gudmundur gudmundur committed Feb 19, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 index.js
View
@@ -36,6 +36,14 @@ exports = module.exports = function (since, until, opts) {
else if (m = /^Date:\s+(.+)/.exec(line)) {
commit.date = new Date(m[1]);
}
+ else if (m = /^\s+git\-svn\-id:\s(.+)$/.exec(line)) {
+ var svn = m[1].split(/[@\s]/);
+ commit.svn = {
+ repo : svn[0],
+ rev : Number(svn[1]),
+ uuid : svn[2]
+ };
+ }
else if (m = /^\s+(\S.+)/.exec(line)) {
commit.message = commit.message ? commit.message + '\n' + m[1] : m[1];
}

0 comments on commit f36ec85

Please sign in to comment.