From b968336efa355605489d3bc8a5519f29f135ab84 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:00:24 +0100 Subject: [PATCH] Git - do not show origin/HEAD ref in the graph (#239842) --- extensions/git/src/historyProvider.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/git/src/historyProvider.ts b/extensions/git/src/historyProvider.ts index f15c5899fda..db316c81d0b 100644 --- a/extensions/git/src/historyProvider.ts +++ b/extensions/git/src/historyProvider.ts @@ -408,6 +408,10 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec const references: SourceControlHistoryItemRef[] = []; for (const ref of commit.refNames) { + if (ref === 'refs/remotes/origin/HEAD') { + continue; + } + switch (true) { case ref.startsWith('HEAD -> refs/heads/'): references.push({