threads / patch / 16103

patchbash completion: add doubledash to "git show"

Subject: [PATCH] bash completion: add doubledash to "git show"

## tl;dr

One message between Oct 31, 2008 and Oct 31, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Markus Heidelberg· Oct 31, 2008, 00:04 UTC · lore
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
 contrib/completion/git-completion.bash |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Show changes to contrib/completion/git-completion.bash +2 −0
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index eebe734..de193ba 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1398,6 +1398,8 @@ _git_shortlog ()
 
 _git_show ()
 {
+	__git_has_doubledash && return
+
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--pretty=*)
-- 
1.6.0.3.524.g3adb7d

← back to recent threads