git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/git-other-branches
diff options
context:
space:
mode:
authormail_redacted_for_web 2026-01-26 12:51:02 +0100
committermail_redacted_for_web 2026-01-26 12:51:02 +0100
commit117ef4a71a7aae1de0c79e0cb74addf8b0b0fd50 (patch)
treee07d32793ed2354f590a38bc1776863a5de121d7 /bin/git-other-branches
parentb22f60d8a4c68d043010990b7eb07a40d471ea0f (diff)
downloaddotfiles-117ef4a71a7aae1de0c79e0cb74addf8b0b0fd50.tar.bz2
fix: do not display HEAD along with the branchestesting
Diffstat (limited to 'bin/git-other-branches')
-rwxr-xr-xbin/git-other-branches3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/git-other-branches b/bin/git-other-branches
index 729ba61..034670e 100755
--- a/bin/git-other-branches
+++ b/bin/git-other-branches
@@ -8,4 +8,5 @@ GREPBIN='/usr/bin/grep'
# shellcheck disable=SC2016
"$GITBIN" branch --remotes |\
"$AWKBIN" '{print $1}' | "$AWKBIN" -F/ '{print $2}' |\
- "$GREPBIN" -v "^$(git rev-parse --abbrev-ref HEAD)\$"
+ "$GREPBIN" -v "^$(git rev-parse --abbrev-ref HEAD)\$" |\
+ "$GREPBIN" -v '^HEAD$'