From 28af0e9aebae2e7ace4091723c1e790c79da4dfd Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Tue, 27 May 2025 11:51:40 +0200 Subject: [PATCH] Git - include short commit hash in the ref picker details (#249874) --- extensions/git/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 3fa1ce1c79e..152e78b161f 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -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;