diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-09 00:21:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-09 00:21:09 +1200 |
commit | 18d1fdecf806a71d78611f994bacdd58107d767a (patch) | |
tree | 77a89db3de5297ef73f47ea4801e42225517812e /bash/bash_completion.d/git.bash | |
parent | Improve Git Bash completion a lot (diff) | |
download | dotfiles-18d1fdecf806a71d78611f994bacdd58107d767a.tar.gz dotfiles-18d1fdecf806a71d78611f994bacdd58107d767a.zip |
Use double-glob to get all refs
Including remotes
Diffstat (limited to 'bash/bash_completion.d/git.bash')
-rw-r--r-- | bash/bash_completion.d/git.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/git.bash b/bash/bash_completion.d/git.bash index 1d584c2f..ba8e5d59 100644 --- a/bash/bash_completion.d/git.bash +++ b/bash/bash_completion.d/git.bash @@ -60,7 +60,7 @@ _git() { COMPREPLY[${#COMPREPLY[@]}]=${ref#refs/*/} done < <(git for-each-ref \ --format '%(refname)' \ - -- 'refs/*/'"${COMP_WORDS[COMP_CWORD]}"'*' \ + -- 'refs/**/'"${COMP_WORDS[COMP_CWORD]}"'*' \ 2>/dev/null) return ;; |