mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 01:25:42 -05:00
Fixes issues with merge commits
This commit is contained in:
@@ -12,6 +12,7 @@ export class GitLogCommit extends GitCommit {
|
||||
fileStatuses: { status: GitStatusFileStatus, fileName: string, originalFileName?: string }[];
|
||||
nextSha?: string;
|
||||
nextFileName?: string;
|
||||
parentShas: string[];
|
||||
status: GitStatusFileStatus;
|
||||
|
||||
constructor(
|
||||
@@ -43,6 +44,10 @@ export class GitLogCommit extends GitCommit {
|
||||
}
|
||||
}
|
||||
|
||||
get isMerge() {
|
||||
return this.parentShas && this.parentShas.length > 1;
|
||||
}
|
||||
|
||||
get nextShortSha() {
|
||||
return this.nextSha && this.nextSha.substring(0, 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user