summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2008-07-23 13:49:22 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-07-24 23:29:50 -0700
commitc84bb14ce52b6559e0b8e10d554ff9b47149c042 (patch)
tree697d7b1287affc7fcb72fd0408043fd45ae7c9ff
parentcheckout: mention '--' in the docs (diff)
downloadtgif-c84bb14ce52b6559e0b8e10d554ff9b47149c042.tar.xz
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>
-rwxr-xr-xcontrib/completion/git-completion.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3b049348c3..40b3d99737 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)"
}