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

[PATCH 1/4] completion: complete missing rev-list options

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

Some options listed in rev-list-options.txt, and thus accepted by 'git log' and friends, are missing from the Bash completion script.

Add them to __git_log_common_options.
Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
---
 contrib/completion/git-completion.bash | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8c40ade4941..6108d523a11 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2071,6 +2071,16 @@ __git_log_common_options="
 	--min-age= --until= --before=
 	--min-parents= --max-parents=
 	--no-min-parents --no-max-parents
+	--alternate-refs --ancestry-path
+	--author-date-order --basic-regexp
+	--bisect --boundary --exclude-first-parent-only
+	--exclude-hidden --extended-regexp
+	--fixed-strings --grep-reflog
+	--ignore-missing --left-only --perl-regexp
+	--reflog --regexp-ignore-case --remove-empty
+	--right-only --show-linear-break
+	--show-notes-by-default --show-pulls
+	--since-as-filter --single-worktree
 "
 # Options that go well for log and gitk (not shortlog)
 __git_log_gitk_options="
-- 
gitgitgadget
Previous: Philippe Blain via GitGitGadgetNext: Philippe Blain via GitGitGadget
Message 2 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.