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

[PATCH] completion: complete more boolean/-like config values

From
Ville Skyttä <ville.skytta@iki.fi>
Date
Aug 11, 2021, 19:59 UTC
Message-ID
<20210811195913.793880-1-ville.skytta@iki.fi>

Add support for completing the boolean or booleanlike config values for `format.signOff`, `merge.ff`, `pull.ff`, `pull.rebase`, and `submodule.recurse`.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
---
 contrib/completion/git-completion.bash | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 4bdd27ddc8..fdeae5cc05 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2546,6 +2546,18 @@ __git_complete_config_variable_value ()
 		__gitcomp "false true merges preserve interactive" "" "$cur_"
 		return
 		;;
+	format.signOff)
+		__gitcomp "false true" "" "$cur_"
+		return
+		;;
+	merge.ff)
+		__gitcomp "false only" "" "$cur_"
+		return
+		;;
+	pull.ff|pull.rebase)
+		__gitcomp "false only" "" "$cur_"
+		return
+		;;
 	remote.pushdefault)
 		__gitcomp_nl "$(__git_remotes)" "" "$cur_"
 		return
@@ -2615,6 +2627,10 @@ __git_complete_config_variable_value ()
 		__gitcomp "7bit 8bit quoted-printable base64" "" "$cur_"
 		return
 		;;
+	submodule.recurse)
+		__gitcomp "false true" "" "$cur_"
+		return
+		;;
 	*.*)
 		return
 		;;
-- 
2.25.1
Message 1 of 1 in “completion: complete more boolean/-like config values”
  1. completion: complete more boolean/-like config valuesVille Skyttä, Aug 11, 2021

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.