aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Vincent Driessen <vincent@3rdcloud.com>2013-01-02 08:16:41 +0100
committerGravatar Vincent Driessen <vincent@3rdcloud.com>2013-01-02 08:16:42 +0100
commit431ef224e0c776a776806fe056070eae0bf57853 (patch)
tree680cb71971f2380f14c4b84aa630f5ac5c048b7d /share
parent600aeb6ccc8f1d93a4e65d8593c29fb02c108c08 (diff)
Remove origin/HEAD lines from __fish_git_branches.
Diffstat (limited to 'share')
-rw-r--r--share/completions/git.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish
index 5b21f7ef..6a316b2c 100644
--- a/share/completions/git.fish
+++ b/share/completions/git.fish
@@ -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