浏览代码

Deals with merge commits in next sha tracking

main
Eric Amodio 7 年前
父节点
当前提交
1b21893d72
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/git/enrichers/logParserEnricher.ts

+ 2
- 1
src/git/enrichers/logParserEnricher.ts 查看文件

@ -202,7 +202,8 @@ export class GitLogParserEnricher implements IGitEnricher {
if (recentCommit) {
recentCommit.previousSha = commit.sha;
commit.nextSha = recentCommit.sha;
// If the commit sha's match (merge commit), just forward it along
commit.nextSha = commit.sha !== recentCommit.sha ? recentCommit.sha : recentCommit.nextSha;
// Only add a filename if this is a file log
if (type === 'file') {
recentCommit.previousFileName = commit.originalFileName || commit.fileName;

正在加载...
取消
保存