mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-22 15:31:58 +00:00
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:
parent
600aeb6ccc
commit
431ef224e0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue