Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 49128 (github #76): vcs_info-examples: optimize +vi-git-untracked() | Suraj N. Kurapati | 2021-07-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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, correct the regexp by adding a ^ anchor and increase its specificity by accounting for the space in Porcelain Format v1. 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. With this patch, I see 4x speedup on a large Git-enabled $HOME: $ time (git status --porcelain | wc -l) 212 0.01s user 0.02s system 0% cpu 9.021 total $ time (git status --porcelain | grep '??' &>/dev/null) 0.01s user 0.02s system 0% cpu 12.294 total $ time (git status --porcelain | grep -q '^?? ' 2>/dev/null) 0.01s user 0.01s system 0% cpu 3.097 total Note that `-q` for grep(1) is in POSIX (IEEE Std 1003.1-2017): https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html See discussion https://www.zsh.org/mla/workers/2021/msg01354.html | ||||
* | 48435 (tweaked): vcs_info docs: applied-string/unapplied-string: Correct an ↵ | Daniel Shahaf | 2021-04-20 | 1 | -0/+51 |
| | | | | | | | | | | | omission in the documentation and add an example. The example code is a reduced version of my function from workers/47519, with one bug fixed. (In workers/47519, if $1 doesn't contain spaces - which is the case under hg mq - then $H and $s will be set to the same value.) Tweaked: Extended the contrib.yo hunk with details about mq. | ||||
* | 48528/0002: vcs_info git docs: ahead/behind commits: Reduce the number of forks | Daniel Shahaf | 2021-04-20 | 1 | -3/+7 |
| | |||||
* | 48528/0001: vcs_info git docs: ahead/behind commits: Don't run rev-list when ↵ | Daniel Shahaf | 2021-04-20 | 1 | -0/+3 |
| | | | | that would fail | ||||
* | 48525: vcs_info git docs: ahead/behind commits: Run fewer external programs | Tim Lee | 2021-04-13 | 1 | -6/+2 |
| | |||||
* | unposted: vcs_info-examples: Fix condition | Mikael Magnusson | 2020-12-05 | 1 | -1/+1 |
| | |||||
* | unposted (cf. GitHub #11): vcs_info hg: docs: Change an example to not use a ↵ | Daniel Shahaf | 2020-07-12 | 1 | -2/+2 |
| | | | | | | | | | hex dump incantation that may replace some bytes' values with asterisks. Discussion: https://github.com/zsh-users/zsh/pull/11#issuecomment-457970494 et seq Incidentally, GitHub #11 is also where workers/39786 (commit zsh-5.2-578-g74aa45910) was first reported. | ||||
* | 45269: Fix misspellings in completions and elsewhere. | Jens Schleusener | 2020-01-09 | 1 | -1/+1 |
| | |||||
* | 45115: vcs_info examples: Make the quilt-patch-dir example friendlier. | Daniel Shahaf | 2019-12-22 | 1 | -12/+18 |
| | | | | | | | - Document that no code at all is necessary for Pareto correctness - Remove a recommendation to rely on implementation details (${rrn}); instead, rely only on ${context}, which is a documented API. | ||||
* | 45116: vcs_info examples: Add an example of showing Git environment variables. | Daniel Shahaf | 2019-12-22 | 1 | -0/+25 |
| | |||||
* | unposted: vcs_info: Add an example of using $functions to find hooks by name. | Daniel Shahaf | 2019-12-02 | 1 | -0/+10 |
| | |||||
* | 42826: remove link to now-spam website | Eitan Adler | 2018-06-04 | 1 | -1/+0 |
| | |||||
* | 40510: vcs_info: Update the $psvar episode with '%'-unescaping. (Follow-up ↵ | Daniel Shahaf | 2017-02-09 | 1 | -1/+1 |
| | | | | to 40492.) | ||||
* | 33149: vcs_info examples: fix typo | Marc Finet | 2014-09-14 | 1 | -1/+1 |
| | |||||
* | 33047: use git to simplify massively source distribution file selection | Peter Stephenson | 2014-08-23 | 1 | -5/+0 |
| | |||||
* | 32528: vcs_info: Add check-for-staged-changes | Daniel Shahaf | 2014-04-05 | 1 | -0/+4 |
| | |||||
* | Seth House: 30701: Misc/vcs_info-examples: Added an hg hook example to ↵ | Frank Terbeck | 2012-09-28 | 1 | -18/+15 |
| | | | | restore the 40-char hash | ||||
* | 30366: Misc/vcs_info-examples: Fix outdated quilt examples. | Simon Ruderich | 2012-03-23 | 1 | -6/+6 |
| | |||||
* | Suraj N. Kurapati: vcs_info-examples: Mention different ways to handle ↵ | Frank Terbeck | 2011-10-19 | 1 | -0/+4 |
| | | | | remote branch names in `vi-git-remotebranch()'. | ||||
* | Valentin Haenel: 29431: Hook example for signaling untracked files in git ↵ | Frank Terbeck | 2011-06-01 | 1 | -0/+17 |
| | | | | repositories | ||||
* | Seth House: 28115: Another git example vcs_info hook. | Frank Terbeck | 2010-08-02 | 1 | -0/+16 |
| | |||||
* | Seth House: 28084, 28083: cleanups and new examples. | Frank Terbeck | 2010-07-19 | 1 | -28/+53 |
| | |||||
* | Simon Ruderich: 27953: vcs_info: changed default formats and actionformats. | Frank Terbeck | 2010-05-14 | 1 | -6/+0 |
| | |||||
* | Simon Ruderich: 27954: vcs_info: more minor documentation fixes. | Frank Terbeck | 2010-05-14 | 1 | -7/+5 |
| | |||||
* | Seth House, Simon Ruderich and myself: 27948: various vcs_info changes | Frank Terbeck | 2010-05-10 | 2 | -0/+497 |
| | | | | | | | | | | | | | | | | | | | | | | | Here's a diff-stat: Doc/Zsh/contrib.yo | 506 ++++++++++++++------- Functions/VCS_Info/.distfiles | 1 + Functions/VCS_Info/Backends/VCS_INFO_detect_hg | 14 +- Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 35 +- Functions/VCS_Info/Backends/VCS_INFO_get_data_hg | 295 +++++++++---- Functions/VCS_Info/VCS_INFO_formats | 26 +- Functions/VCS_Info/VCS_INFO_hook | 10 +- Functions/VCS_Info/VCS_INFO_quilt | 190 ++++++++ Functions/VCS_Info/vcs_info | 30 +- Misc/.distfiles | 1 + Misc/vcs_info-examples | 496 ++++++++++++++++++++ 11 files changed, 1303 insertions(+), 301 deletions(-) The major changes are vast improvements for the mercurial (hg) backend (which was done almost entirely by Seth); improved documentation (mostly done by Simon and again Seth); quilt support (as an addon and stand alone, see the manual for details); a number of new hooks and a fair share of bugfixes. | ||||
* | 24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst: | Peter Stephenson | 2008-03-30 | 1 | -0/+15 |
| | | | | fix backtracking problem in (#c) pattern | ||||
* | add (#cN,M) globbing flag | Peter Stephenson | 2007-07-27 | 1 | -0/+10 |
| | |||||
* | unposted: force latest version of files from vendor to main branch | Peter Stephenson | 2007-07-03 | 7 | -25/+133 |
| | |||||
* | 22557: turn on multibyte option by default | Peter Stephenson | 2006-07-25 | 1 | -1/+0 |
| | |||||
* | 20500: Unmetafy patterns where possible and other minor pattern fixes | Peter Stephenson | 2004-10-18 | 1 | -0/+3 |
| | |||||
* | 19269: 8-bit characters in character classes | Peter Stephenson | 2003-12-03 | 1 | -0/+1 |
| | |||||
* | Remove RCS Id strings. | Bart Schaefer | 2000-05-16 | 1 | -2/+0 |
| | |||||
* | 10547: (#s) and (#e) pattern assertions | Peter Stephenson | 2000-04-06 | 1 | -0/+76 |
| | |||||
* | Updated from list as far as 10376 | Peter Stephenson | 2000-04-01 | 1 | -1/+1 |
| | |||||
* | Initial revision | Tanaka Akira | 1999-11-09 | 1 | -0/+157 |
| | |||||
* | Initial revision | Tanaka Akira | 1999-10-04 | 1 | -0/+100 |
| | |||||
* | Sync up with zsh-3_1_6-pws-1. | Tanaka Akira | 1999-08-12 | 3 | -1736/+0 |
| | |||||
* | Initial revision | Tanaka Akira | 1999-07-12 | 1 | -0/+31 |
| | |||||
* | Initial revision | Tanaka Akira | 1999-04-15 | 2 | -0/+1734 |
| | |||||
* | Initial revision | Tanaka Akira | 1999-04-15 | 7 | -0/+1349 |