threads / patch / 39211

patchcompletion: fix and update 'git log --decorate=' options

Subject: [PATCH] completion: fix and update 'git log --decorate=' options

## tl;dr

One message between May 1, 2015 and May 1, 2015. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

SZEDER Gábor· May 1, 2015, 17:21 UTC · lore

'git log --decorate=' understands the 'full', 'short' and 'no' options. From these the completion script only offered 'short' and it offered 'long' instead of 'full'.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to contrib/completion/git-completion.bash +1 −1
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8b0d2b4..b28a14e 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1447,7 +1447,7 @@ _git_log ()
 		return
 		;;
 	--decorate=*)
-		__gitcomp "long short" "" "${cur##--decorate=}"
+		__gitcomp "full short no" "" "${cur##--decorate=}"
 		return
 		;;
 	--*)
-- 
1.9.5.msysgit.0

← back to recent threads