Skip to content

Commit

Permalink
Merge branch 'mt/zsh-completion-optim' into pu
Browse files Browse the repository at this point in the history
* mt/zsh-completion-optim:
  completion: use native ZSH array pattern matching
  • Loading branch information
gitster committed May 28, 2020
2 parents 03a4021 + a44a0a9 commit a047d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Expand Up @@ -386,7 +386,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
Expand Down

0 comments on commit a047d73

Please sign in to comment.