git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
SZEDER Gábor <szeder@ira.uka.de>
Date
May 1, 2015, 17:21 UTC
Message-ID
<1430500860-4664-1-git-send-email-szeder@ira.uka.de>

'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(-)
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
Message 1 of 1 in “completion: fix and update 'git log --decorate=' options”
  1. completion: fix and update 'git log --decorate=' optionsSZEDER Gábor, May 1, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.