aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2008-07-23 13:49:22 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-24 23:29:50 -0700
commitc84bb14ce52b6559e0b8e10d554ff9b47149c042 (patch)
tree697d7b1287affc7fcb72fd0408043fd45ae7c9ff
parentb302ddd2f8de2944ed3425d48b1a640fab004d02 (diff)
downloadgit-c84bb14ce52b6559e0b8e10d554ff9b47149c042.tar.gz
git-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 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)"
}