Code

bash completion: add doubledash to "git show"
authorMarkus Heidelberg <markus.heidelberg@web.de>
Fri, 31 Oct 2008 00:04:46 +0000 (01:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Oct 2008 07:46:27 +0000 (00:46 -0700)
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 751e273e1aeecd382bc584fcb80b2ed6f52ed862..39a1ce5a3979e6160b8450a0d9dd08ec6b6cd7a2 100755 (executable)
@@ -1410,6 +1410,8 @@ _git_shortlog ()
 
 _git_show ()
 {
+       __git_has_doubledash && return
+
        local cur="${COMP_WORDS[COMP_CWORD]}"
        case "$cur" in
        --pretty=*)