From 210a9cb6184c644d06be9aa8925d4a13e0c0403b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 18 Jan 2025 14:05:26 +0300 Subject: [PATCH] Feat(git-current-branch): List local branches for `HEAD` List local branches from which `HEAD` is reachable. --- git-current-branch | 1 + 1 file changed, 1 insertion(+) diff --git a/git-current-branch b/git-current-branch index 19cedf4..d485dea 100755 --- a/git-current-branch +++ b/git-current-branch @@ -4,6 +4,7 @@ git branch --show-current git describe --all +git for-each-ref --contains=HEAD --format="%(refname)" refs/heads/ git name-rev --name-only HEAD git rev-parse --abbrev-ref HEAD -- 2.39.5