Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PR] vcs_info-examples: optimize +vi-git-untracked() #76



Hello,

I have submitted pull-request #76 on the GitHub repo regarding:

           https://github.com/zsh-users/zsh/pull/76

Speed up the prompt on large and/or deep working directories by
stopping grep(1) as soon as it finds a single match, with `-q`.
Also, optimize the regular expression with an anchor and space.

Previously, +vi-git-untracked() waited for grep(1) to find all
matches of untracked files, redirecting them away to /dev/null,
before finally concluding that untracked files do indeed exist.

Thanks for your consideration.

Attachment: pgpAjVVAVvNhd.pgp
Description: OpenPGP digital signature



Messages sorted by: Reverse Date, Date, Thread, Author