Skip to content

Commit 28af0e9

Browse files
authored
Git - include short commit hash in the ref picker details (microsoft#249874)
1 parent fd68235 commit 28af0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/git/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class RefItem implements QuickPickItem {
9191

9292
get detail(): string | undefined {
9393
if (this.ref.commitDetails?.authorName && this.ref.commitDetails?.message) {
94-
return `${this.ref.commitDetails?.authorName}$(circle-small-filled)${this.ref.commitDetails?.message}`;
94+
return `${this.ref.commitDetails.authorName}$(circle-small-filled)${this.shortCommit}$(circle-small-filled)${this.ref.commitDetails.message}`;
9595
}
9696

9797
return undefined;

0 commit comments

Comments
 (0)