We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e34df9a + a44a0a9 commit a0ba2bbCopy full SHA for a0ba2bb
contrib/completion/git-completion.bash
@@ -373,7 +373,7 @@ __gitcomp ()
373
# Clear the variables caching builtins' options when (re-)sourcing
374
# the completion script.
375
if [[ -n ${ZSH_VERSION-} ]]; then
376
- 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
377
else
378
unset $(compgen -v __gitcomp_builtin_)
379
fi
0 commit comments