summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Markus Heidelberg <markus.heidelberg@web.de>2008-10-31 01:04:46 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-10-31 00:46:27 -0700
commit41d8cf7d7fd79fe1fd00b04052c49bffaedfd309 (patch)
tree98145f24a377a664c39d5920521fb919638a679e
parentUse test-chmtime -v instead of perl in t5000 to get mtime of a file (diff)
downloadtgif-41d8cf7d7fd79fe1fd00b04052c49bffaedfd309.tar.xz
bash completion: add doubledash to "git show"
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.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 751e273e1a..39a1ce5a39 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1410,6 +1410,8 @@ _git_shortlog ()
_git_show ()
{
+ __git_has_doubledash && return
+
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--pretty=*)