DORMANTno replies

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

From: Ville Skyttä <hidden>
Date: 2021-08-11 19:59:19
Subsystem: the rest · Maintainer: Linus Torvalds

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ä <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help