X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-branch.sh;h=134e68cf7f0389d73af000c4303c4dda27f89d57;hb=698ce6f87e0d6db380f7306e190e8586da184577;hp=ebcc8989d8cfd9d64f0e4cacd0a0ff76f50d1345;hpb=50cbebf78ddf4f7e79ffa74c51d6fb0f11c19a2e;p=git.git diff --git a/git-branch.sh b/git-branch.sh index ebcc8989..134e68cf 100755 --- a/git-branch.sh +++ b/git-branch.sh @@ -82,8 +82,7 @@ done case "$#" in 0) - git-rev-parse --symbolic --all | - sed -ne 's|^refs/heads/||p' | + git-rev-parse --symbolic --branches | sort | while read ref do