Git - include short commit hash in the ref picker details (#249874)

This commit is contained in:
Ladislau Szomoru
2025-05-27 11:51:40 +02:00
committed by GitHub
parent fd6823513a
commit 28af0e9aeb

View File

@@ -91,7 +91,7 @@ class RefItem implements QuickPickItem {
get detail(): string | undefined {
if (this.ref.commitDetails?.authorName && this.ref.commitDetails?.message) {
return `${this.ref.commitDetails?.authorName}$(circle-small-filled)${this.ref.commitDetails?.message}`;
return `${this.ref.commitDetails.authorName}$(circle-small-filled)${this.shortCommit}$(circle-small-filled)${this.ref.commitDetails.message}`;
}
return undefined;