|
@ -13,6 +13,8 @@ interface ILogEntry { |
|
|
committer?: string; |
|
|
committer?: string; |
|
|
committerDate?: string; |
|
|
committerDate?: string; |
|
|
|
|
|
|
|
|
|
|
|
parentSha?: string; |
|
|
|
|
|
|
|
|
fileName?: string; |
|
|
fileName?: string; |
|
|
originalFileName?: string; |
|
|
originalFileName?: string; |
|
|
fileStatuses?: { status: GitFileStatus, fileName: string, originalFileName: string }[]; |
|
|
fileStatuses?: { status: GitFileStatus, fileName: string, originalFileName: string }[]; |
|
@ -70,6 +72,10 @@ export class GitLogParserEnricher implements IGitEnricher { |
|
|
// entry.committerDate = lineParts.slice(1).join(' ').trim();
|
|
|
// entry.committerDate = lineParts.slice(1).join(' ').trim();
|
|
|
// break;
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'parent': |
|
|
|
|
|
entry.parentSha = lineParts.slice(1).join(' ').trim(); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
case 'summary': |
|
|
case 'summary': |
|
|
entry.summary = lineParts.slice(1).join(' ').trim(); |
|
|
entry.summary = lineParts.slice(1).join(' ').trim(); |
|
|
while (++position < lines.length) { |
|
|
while (++position < lines.length) { |
|
@ -209,8 +215,10 @@ export class GitLogParserEnricher implements IGitEnricher { |
|
|
|
|
|
|
|
|
if (recentCommit) { |
|
|
if (recentCommit) { |
|
|
recentCommit.previousSha = commit.sha; |
|
|
recentCommit.previousSha = commit.sha; |
|
|
|
|
|
|
|
|
// If the commit sha's match (merge commit), just forward it along
|
|
|
// If the commit sha's match (merge commit), just forward it along
|
|
|
commit.nextSha = commit.sha !== recentCommit.sha ? recentCommit.sha : recentCommit.nextSha; |
|
|
commit.nextSha = commit.sha !== recentCommit.sha ? recentCommit.sha : recentCommit.nextSha; |
|
|
|
|
|
|
|
|
// Only add a filename if this is a file log
|
|
|
// Only add a filename if this is a file log
|
|
|
if (type === 'file') { |
|
|
if (type === 'file') { |
|
|
recentCommit.previousFileName = commit.originalFileName || commit.fileName; |
|
|
recentCommit.previousFileName = commit.originalFileName || commit.fileName; |
|
|