summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2021-08-16 09:10:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-08-18 18:17:25 (GMT)
commitf3cc916acc2e0f92c05e07c82c83b370e7d31247 (patch)
treec6ed93b38cc6123a18abe927527eecc11682c93f /contrib/completion
parente9f2118ddfad4ae5e37adc7637acc9daf4ac8c9c (diff)
downloadgit-f3cc916acc2e0f92c05e07c82c83b370e7d31247.zip
git-f3cc916acc2e0f92c05e07c82c83b370e7d31247.tar.gz
git-f3cc916acc2e0f92c05e07c82c83b370e7d31247.tar.bz2
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/completion')
-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 0560660..1feb2ee 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-}"