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

[PATCH 3/4] completion: complete --encoding

From
Philippe Blain via GitGitGadget <gitgitgadget@gmail.com>
Date
Jan 21, 2024, 04:07 UTC
Message-ID
<faa601ecb92b301d5730474efd11fba27d6a5cc7.1705810072.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1650.git.git.1705810071.gitgitgadget@gmail.com>
From: Philippe Blain <levraiphilippeblain@gmail.com>

The option --encoding is supported by 'git log' and 'git show', so add it to __git_log_show_options.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
---
 contrib/completion/git-completion.bash | 1 +
 1 file changed, 1 insertion(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ccb17f4ad7b..a7ae2cbe55b 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2096,6 +2096,7 @@ __git_log_shortlog_options="
 # Options accepted by log and show
 __git_log_show_options="
 	--diff-merges --diff-merges= --no-diff-merges --dd --remerge-diff
+	--encoding=
 "
 
 __git_diff_merges_opts="off none on first-parent 1 separate m combined c dense-combined cc remerge r"
-- 
gitgitgadget
Previous: Junio C HamanoNext: Philippe Blain via GitGitGadget
Message 5 of 6 in “completion: add missing 'git log' options”
  1. 0/4 completion: add missing 'git log' optionsPhilippe Blain via GitGitGadget, Jan 21, 2024
  2. 1/4 completion: complete missing rev-list optionsPhilippe Blain via GitGitGadget, Jan 21, 2024
  3. 2/4 completion: complete --patch-with-rawPhilippe Blain via GitGitGadget, Jan 21, 2024
  4. Junio C HamanoJan 22, 2024
  5. 3/4 completion: complete --encodingPhilippe Blain via GitGitGadget, Jan 21, 2024
  6. 4/4 completion: complete missing 'git log' optionsPhilippe Blain via GitGitGadget, Jan 21, 2024

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.