From: "Ville Skyttä" <ville.skytta@iki.fi>
To: git@vger.kernel.org
Subject: [PATCH] completion: complete more boolean/-like config values
Date: Wed, 11 Aug 2021 22:59:13 +0300 [thread overview]
Message-ID: <20210811195913.793880-1-ville.skytta@iki.fi> (raw)
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
reply other threads:[~2021-08-11 19:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210811195913.793880-1-ville.skytta@iki.fi \
--to=ville.skytta@iki.fi \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).