summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-11-06 15:50:19 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-06 15:50:20 +0900
commit9ffcf754dacea247c15dd78a61f0eebb4493bc75 (patch)
tree2ea46e063929bd3ac54c71dd5763e9351123ca56 /contrib/completion/git-completion.bash
parentMerge branch 'jt/upload-pack-v2-fix-shallow' (diff)
parentcompletion: fix __gitcomp_builtin no longer consider extra options (diff)
downloadtgif-9ffcf754dacea247c15dd78a61f0eebb4493bc75.tar.xz
Merge branch 'nd/completion-negation'
The command line completion machinery (in contrib/) has been updated to allow the completion script to tweak the list of options that are reported by the parse-options machinery correctly. * nd/completion-negation: completion: fix __gitcomp_builtin no longer consider extra options
Diffstat (limited to 'contrib/completion/git-completion.bash')
-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 86b8f474c8..e9647a103a 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -400,7 +400,7 @@ __gitcomp_builtin ()
if [ -z "$options" ]; then
# leading and trailing spaces are significant to make
# option removal work correctly.
- options=" $(__git ${cmd/_/ } --git-completion-helper) $incl "
+ options=" $incl $(__git ${cmd/_/ } --git-completion-helper) "
for i in $excl; do
options="${options/ $i / }"
done