From 18d1fdecf806a71d78611f994bacdd58107d767a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 9 Sep 2016 00:21:09 +1200 Subject: Use double-glob to get all refs Including remotes --- bash/bash_completion.d/git.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') 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 ;; -- cgit v1.2.3