bash: offer only paths after '--' for 'git checkout'
authorSZEDER Gábor <szeder@ira.uka.de>
Wed, 23 Jul 2008 11:49:22 +0000 (13:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jul 2008 06:29:50 +0000 (23:29 -0700)
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 <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 3b049348c3a4ed1b9c1f08340b023ac4597e5f4f..40b3d99737536c3cd85dece7b61d62d8977b43aa 100755 (executable)
@@ -626,6 +626,8 @@ _git_bundle ()
 
 _git_checkout ()
 {
+       __git_has_doubledash && return
+
        __gitcomp "$(__git_refs)"
 }