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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux