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 optionsmaint
commit
9ffcf754da
|
@ -400,7 +400,7 @@ __gitcomp_builtin ()
|
||||||
if [ -z "$options" ]; then
|
if [ -z "$options" ]; then
|
||||||
# leading and trailing spaces are significant to make
|
# leading and trailing spaces are significant to make
|
||||||
# option removal work correctly.
|
# option removal work correctly.
|
||||||
options=" $(__git ${cmd/_/ } --git-completion-helper) $incl "
|
options=" $incl $(__git ${cmd/_/ } --git-completion-helper) "
|
||||||
for i in $excl; do
|
for i in $excl; do
|
||||||
options="${options/ $i / }"
|
options="${options/ $i / }"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue