Skip to content

Commit c84bb14

Browse files
szedergitster
authored andcommitted
bash: offer only paths after '--' for 'git checkout'
Commit d773c63 (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>
1 parent b302ddd commit c84bb14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,8 @@ _git_bundle ()
626626

627627
_git_checkout ()
628628
{
629+
__git_has_doubledash && return
630+
629631
__gitcomp "$(__git_refs)"
630632
}
631633

0 commit comments

Comments
 (0)