projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b302ddd
)
bash: offer only paths after '--' for 'git checkout'
author
SZEDER Gábor
<szeder@ira.uka.de>
Wed, 23 Jul 2008 11:49:22 +0000
(13:49 +0200)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 3b049348c3a4ed1b9c1f08340b023ac4597e5f4f..40b3d99737536c3cd85dece7b61d62d8977b43aa 100755
(executable)
--- 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)"
}