Thread (34 messages) 34 messages, 4 authors, 2018-05-29
STALE3043d

Revision v1 of 2 in this series.

Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 8/9] completion: support case-insensitive config vars just a bit

From: Nguyễn Thái Ngọc Duy <hidden>
Date: 2018-05-10 14:19:48
Subsystem: the rest · Maintainer: Linus Torvalds

config variable names are technically case-insensitive while this case
construct is by default case-sensitive. Moving it to case-insensitive
could be a lot more work. Instead let's just accept the form that is
more likely to show up in practice.

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
---
 contrib/completion/git-completion.bash | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8d3257c4de..e7829b5b24 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2084,7 +2084,7 @@ __git_compute_config_vars ()
 _git_config ()
 {
 	case "$prev" in
-	branch.*.remote|branch.*.pushremote)
+	branch.*.remote|branch.*.push[Rr]emote)
 		__gitcomp_nl "$(__git_remotes)"
 		return
 		;;
@@ -2096,7 +2096,7 @@ _git_config ()
 		__gitcomp "false true preserve interactive"
 		return
 		;;
-	remote.pushdefault)
+	remote.push[Dd]efault)
 		__gitcomp_nl "$(__git_remotes)"
 		return
 		;;
@@ -2162,7 +2162,7 @@ _git_config ()
 		__gitcomp "$__git_send_email_suppresscc_options"
 		return
 		;;
-	sendemail.transferencoding)
+	sendemail.transfer[Ee]ncoding)
 		__gitcomp "7bit 8bit quoted-printable base64"
 		return
 		;;
-- 
2.17.0.705.g3525833791
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help