@matheusbsbs / matheus-bagliano / commits / c84bb14ce5
Fork 0

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 <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Jul 23, 2008 at 13:49 UTC c84bb14ce52b6559e0b8e10d554ff9b47149c042
1 file changed +2
contrib/completion/git-completion.bash
+2
@@ -626,6 +626,8 @@ _git_bundle ()
626
627 _git_checkout ()
628 {
629 + __git_has_doubledash && return
630 +
631 __gitcomp "$(__git_refs)"
632 }
633