diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-06-02 13:35:04 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-06-02 13:35:04 -0700 |
| commit | a0ba2bbbdd9c5b44ae49910bc774aced87f89771 (patch) | |
| tree | 3cc8ba22e1fe0cb02587ac49b6a33b8382442200 | |
| parent | e34df9a6e591be60172e3308b429bd7d243dfce8 (diff) | |
| parent | a44a0a9fc4353ff4ccd4b2308db2844d7f4185f9 (diff) | |
| download | git-a0ba2bbbdd9c5b44ae49910bc774aced87f89771.tar.xz | |
Merge branch 'mt/zsh-completion-optim'
Command line completion (incontrib/) update.
* mt/zsh-completion-optim:
completion: use native ZSH array pattern matching
| -rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 70ad04e1b2..ad6934a386 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -373,7 +373,7 @@ __gitcomp () # Clear the variables caching builtins' options when (re-)sourcing # the completion script. if [[ -n ${ZSH_VERSION-} ]]; then - unset $(set |sed -ne 's/^\(__gitcomp_builtin_[a-zA-Z0-9_][a-zA-Z0-9_]*\)=.*/\1/p') 2>/dev/null + unset ${(M)${(k)parameters[@]}:#__gitcomp_builtin_*} 2>/dev/null else unset $(compgen -v __gitcomp_builtin_) fi |
