summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2021-08-16 04:10:24 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-08-18 11:17:25 -0700
commitf3cc916acc2e0f92c05e07c82c83b370e7d31247 (patch)
treec6ed93b38cc6123a18abe927527eecc11682c93f /contrib
parentcompletion: bash: fix for suboptions with value (diff)
downloadtgif-f3cc916acc2e0f92c05e07c82c83b370e7d31247.tar.xz
completion: bash: fix for multiple dash commands
Otherwise options of commands like 'for-each-ref' are not completed. Tested-by: David Aguilar <davvid@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 05606609f9..1feb2ee108 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -421,7 +421,7 @@ __gitcomp_builtin ()
local incl="${2-}"
local excl="${3-}"
- local var=__gitcomp_builtin_"${cmd/-/_}"
+ local var=__gitcomp_builtin_"${cmd//-/_}"
local options
eval "options=\${$var-}"