From: SZEDER Gábor Date: Tue, 4 Mar 2008 18:00:58 +0000 (+0100) Subject: bash: add git-branch options X-Git-Tag: v1.5.5-rc0~62 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3b376b0cb8b5d6b7b0d3f3acff6a31f350a7ab04;p=git.git bash: add git-branch options Signed-off-by: SZEDER Gábor Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 8f70e1efc..8d6733abe 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -506,7 +506,16 @@ _git_bisect () _git_branch () { - __gitcomp "$(__git_refs)" + case "${COMP_WORDS[COMP_CWORD]}" in + --*=*) COMPREPLY=() ;; + --*) + __gitcomp " + --color --no-color --verbose --abbrev= --no-abbrev + --track --no-track + " + ;; + *) __gitcomp "$(__git_refs)" ;; + esac } _git_bundle ()