mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Deals with merge commits in next sha tracking
This commit is contained in:
@@ -202,7 +202,8 @@ export class GitLogParserEnricher implements IGitEnricher<IGitLog> {
|
|||||||
|
|
||||||
if (recentCommit) {
|
if (recentCommit) {
|
||||||
recentCommit.previousSha = commit.sha;
|
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
|
// 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user