Remove origin/HEAD lines from __fish_git_branches.

Related discussion:
http://stackoverflow.com/questions/354312/why-is-origin-head-shown-when-running-git-branch-r
This commit is contained in:
Vincent Driessen 2013-01-02 08:16:41 +01:00
parent 600aeb6ccc
commit 431ef224e0

View file

@ -1,7 +1,7 @@
# fish completion for git
function __fish_git_branches
git branch --no-color -a 2>/dev/null | sed 's/^..//; s/^remotes\///'
git branch --no-color -a ^/dev/null | grep -v ' -> ' | sed -e 's/^..//' -e 's/^remotes\///'
end
function __fish_git_tags