diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-10-16 17:15:37 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-10-16 17:15:37 +0200 |
commit | df3da55602397968ea76cdb0c40dbce4c146a294 (patch) | |
tree | b64bfeaf1e7d6b0b6099e07186d6def96cecbfe2 /share/completions/git.fish | |
parent | 13479fbc2a130d97caeb66f7f56fb89c6be8c489 (diff) |
git completion: Allow branches with "/" in them as unique remote branches
Diffstat (limited to 'share/completions/git.fish')
-rw-r--r-- | share/completions/git.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 42d1ac63..157cd779 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -8,7 +8,7 @@ end function __fish_git_unique_remote_branches # Allow all remote branches with one remote without the remote part # This is useful for `git checkout` to automatically create a remote-tracking branch - command git branch --no-color -a ^/dev/null | __fish_sgrep -v ' -> ' | string trim -c "* " | string replace -r "^.*/" "" | sort | uniq -u + command git branch --no-color -a ^/dev/null | __fish_sgrep -v ' -> ' | string trim -c "* " | string replace -r "^remotes/[^/]*/" "" | sort | uniq -u end function __fish_git_tags |