Merge branch 'nd/parseopt-completion'
Hotfix for recently graduated topic that give help to completion scripts from the Git subcommands that are being completed * nd/parseopt-completion: t9902: disable test on the list of merge-strategies under GETTEXT_POISON completion: clear cached --options when sourcing the completion script
This commit is contained in:
@ -280,6 +280,10 @@ __gitcomp ()
|
||||
esac
|
||||
}
|
||||
|
||||
# Clear the variables caching builtins' options when (re-)sourcing
|
||||
# the completion script.
|
||||
unset $(set |sed -ne 's/^\(__gitcomp_builtin_[a-zA-Z0-9_][a-zA-Z0-9_]*\)=.*/\1/p') 2>/dev/null
|
||||
|
||||
# This function is equivalent to
|
||||
#
|
||||
# __gitcomp "$(git xxx --git-completion-helper) ..."
|
||||
|
Reference in New Issue
Block a user