From: SZEDER Gábor Date: Wed, 23 Jul 2008 11:49:22 +0000 (+0200) Subject: bash: offer only paths after '--' for 'git checkout' X-Git-Tag: v1.6.0-rc1~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c84bb14ce52b6559e0b8e10d554ff9b47149c042;p=git.git bash: offer only paths after '--' for 'git checkout' Commit d773c631 (bash: offer only paths after '--', 2008-07-08) did the same for several other git commands, but 'git checkout' went unnoticed. Signed-off-by: SZEDER Gábor Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3b049348c..40b3d9973 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -626,6 +626,8 @@ _git_bundle () _git_checkout () { + __git_has_doubledash && return + __gitcomp "$(__git_refs)" }