* [PATCH] completion: complete more boolean/-like config values
@ 2021-08-11 19:59 Ville Skyttä
0 siblings, 0 replies; only message in thread
From: Ville Skyttä @ 2021-08-11 19:59 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-11 19:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 19:59 [PATCH] completion: complete more boolean/-like config values Ville Skyttä
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).