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

[PATCH 1/2] completion: complete merge-base options

From
John Keeping <john@keeping.me.uk>
Date
Jan 11, 2014, 14:27 UTC
Message-ID
<8a66d7faa732647badcb7ac76c6e90ff7e694686.1389450433.git.john@keeping.me.uk>
Signed-off-by: John Keeping <john@keeping.me.uk>
---
 contrib/completion/git-completion.bash | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 4fe5ce3..e74d402 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1499,6 +1499,12 @@ _git_mergetool ()
 
 _git_merge_base ()
 {
+	case "$cur" in
+	--*)
+		__gitcomp "--octopus --independent --is-ancestor --fork-point"
+		return
+		;;
+	esac
 	__gitcomp_nl "$(__git_refs)"
 }
 
-- 
1.8.5.226.g0d60d77
Next: John Keeping
Message 1 of 2 in “completion: complete merge-base options”
  1. 1/2 completion: complete merge-base optionsJohn Keeping, Jan 11, 2014
  2. 2/2 completion: handle --[no-]fork-point options to git-rebaseJohn Keeping, Jan 11, 2014

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.