From: "Suraj N. Kurapati" <sunaku@riseup.net>
To: zsh-workers@zsh.org
Subject: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
Date: Sat, 26 Jun 2021 23:09:03 -0700 [thread overview]
Message-ID: <20210626230903.43ba5516@ratham> (raw)
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
next reply other threads:[~2021-06-27 6:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-27 6:09 Suraj N. Kurapati [this message]
2021-06-27 9:13 ` Oliver Kiddle
2021-06-27 10:04 ` Frank Terbeck
2021-06-28 17:16 ` Suraj N. Kurapati
2021-06-27 13:03 ` Roman Perepelitsa
2021-06-28 22:57 ` Suraj N. Kurapati
2021-06-29 7:16 ` Roman Perepelitsa
2021-08-04 8:55 ` Roman Neuhauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210626230903.43ba5516@ratham \
--to=sunaku@riseup.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).