X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-branch.sh;h=134e68cf7f0389d73af000c4303c4dda27f89d57;hb=3f0f756b839c5f426fcd85c2b5d09164392b8bf6;hp=ebcc8989d8cfd9d64f0e4cacd0a0ff76f50d1345;hpb=dd097fcd4d3d6692ec19c0caf4686aa8849301a2;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