From df3da55602397968ea76cdb0c40dbce4c146a294 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 16 Oct 2015 17:15:37 +0200 Subject: git completion: Allow branches with "/" in them as unique remote branches --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3