Commit Graph

11713 Commits (c055c6464de20da13a6c805f017543f94b6e0ca9)
 

Author SHA1 Message Date
Daniel Shahaf c055c6464d unposted: vcs_info: Add Vim modelines
... for consistency with all other vcs_info function files.
2 years ago
Daniel Shahaf ee5e3d0c9d 49723: vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when get-unapplied hasn't been set
This affects the post-quilt hook.  Before this patch, if no patches have
been applied and get-unapplied hasn't been set, the second argument to
that hook would undergo null elision.

The generation of patch subjects for the gen-applied-string,
gen-unapplied-string, and set-patch-format hooks was unaffected since
it was guarded by [[ -n $patches ]].
2 years ago
Daniel Shahaf e52062170a 49722: vcs_info quilt: Refactor for readability. No functional change. 2 years ago
Daniel Shahaf 04513dd5df 49715: _subversion: add: Complete target arguments to this subcommand 2 years ago
Daniel Shahaf a956caa233 49714: _subversion: resolve: Complete conflicted files created by merges, too 2 years ago
Daniel Shahaf a803a5f4c4 49713: _subversion: commit, diff, revert: Update completions for svn 1.7 and newer
* _svn_deletedfiles: Remove.
    The last version of svn(1) under which that function could possibly
    complete anything, svn 1.6.x, was EOLed in 2013.  Newer versions
    don't have a "text-base" directory, so $controlled is set to an
    empty array, so this function returned false for all files, so
    in 'svn rm' (up to the previous commit) all files were completed
    (because that's what '_files -g "*(e:false:)"' does).

* _svn_status: Remove.
    Versions of svn newer than the aforementioned 1.6.x have an
    entries file but never modify it, so the "mtime has changed" check
    would false negative.  Therefore, sequences such as:
    .
        svn <TAB>
        echo >> some/versioned/file
        svn ci <TAB>
    .
    wouldn't offer some/versioned/file.
    .
    Furthermore, completion would offer directories with no changed
    files in them, and even unversioned directories.  Now only changed
    files/directories are offered.

* _cache_svn_status, _cache_svn_mtime: Remove.
    If these hadn't been removed, I would have moved their declarations
    to file scope so _svn_status could be used from outside this file,
    too.

The replacement function, _svn_modified, doesn't have cache support, but
does honour the 'verbose' style to inhibit recursion to subdirectories.
2 years ago
Daniel Shahaf cb2b0e7c6c 49712: _subversion: svn rm: Complete all svn-controlled files, not only missing/deleted files
Note that currently, _svn_controlled matches all files.
2 years ago
Daniel Shahaf 6342512483 49711: _subversion: _svn_status: Don't offer unversioned files
This function is used only by revert, diff, and commit, none of which
can run on unversioned files (those with status '?').
2 years ago
Daniel Shahaf 441f594c9f unposted: vcs_info quilt docs: Fix misspelled style name 2 years ago
Daniel Shahaf b99599b4f4 unposted: vcs_info quilt: Remove a no-op variable assignment 2 years ago
Daniel Shahaf 8460d75869 49709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside vcs_info
If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with
HGPLAIN set.  Declaring it 'local' broke that.
2 years ago
Andreas Schneider af0f497247 gitlab !17: Add missing options for quilt setup command 2 years ago
Matt Alexander 2876c25a28 49667: Include US spelling of "grey" ("gray")
Co-authored-by: Daniel Shahaf <d.s@daniel.shahaf.name>
2 years ago
Aaron Schrab 92c80e72aa 49664: Use associative array for third-party completion 2 years ago
Oliver Kiddle 85bf9740a0 49668: update zfs completion 2 years ago
m0viefreak d82604843b 38150: fix off-by-one error in matcher spec parsing 2 years ago
Peter Stephenson 7f240e6aa9 49658: Fix NULL reference in match code.
A test when acquiring the replacement pattern match in the globbing
code erroneously allowed the use of a NULL pointer.  This appears to
be an unnecessary test case added alongside other surgery back in 2008.
2 years ago
Oliver Kiddle b7490d3376 49655 based on 34928 (Daniel Hahler): new pip completion 2 years ago
Oliver Kiddle 6b763233b2 49653: fix array indexing issue introduced with 49518 due to using decimal rather than hex 20
Also avoid comparing the current word against all options when the word
doesn't start with - or +.
2 years ago
Oliver Kiddle 702d773e86 49648 based on github #80 (Vincent Bernat): invert before/since for date glob qualifiers completion 2 years ago
Oliver Kiddle 7cb980b536 49518: fix exclusions for mixed - and + stacked options 2 years ago
Oliver Kiddle 91b7baf259 49646: allow colors in WATCHFMT with %F/%K 2 years ago
Oliver Kiddle 7791a6876c 49645: when completing for the path_dirs option, add a / suffix and follow symlinks 2 years ago
Oliver Kiddle 78c51b34c0 49643: facilitate use of the fake style by always calling _description with the executables tag for command names
Also allow the command-path style to include relative directories.
2 years ago
Oliver Kiddle 6de4bcfcd5 49634, reported by Claes Nästén: revert 28989
Defining _POSIX_C_SOURCE caused issues on Solaris 10 but doesn't seem
to be needed for musl anymore
2 years ago
Oliver Kiddle e2ad321c88 49633: update options for git 2.34 2 years ago
Oliver Kiddle 4e1bd9ebdf 49630: allow zsh to quote matches from bash completions but include a special case for space suffixes 2 years ago
Oliver Kiddle 9fc0e319c9 49631: new logger completion 2 years ago
Oliver Kiddle 4775f4dc12 49629: new Linux perf completion 2 years ago
Daniel Shahaf 7acfb7dfae 49628: Add an xfail test for RPS1/RPROMPT equivalence. 3 years ago
Daniel Shahaf 884cd84722 49624: Expect the test 'All identifiers are variable references in POSIX arithmetic' to pass, as it has been passing since 49611. 3 years ago
Daniel Shahaf 9cc6f8d8c9 unposted: Add whitespace and comments. No functional change. 3 years ago
Daniel Shahaf b2632cd21b 49621: Fix the info Doc build, broken in 49448. 3 years ago
Oliver Kiddle ba225155e4 49612: avoid startup error with clashing non-local module parameter name 3 years ago
Oliver Kiddle b3519a9603 49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math expressions for sh emulation 3 years ago
Oliver Kiddle 07c77dad50 49606: remove old NIS-specific code for retrieving user data 3 years ago
Oliver Kiddle 926a1a7296 49602: only set LOGCHECK from the watch module 3 years ago
Oliver Kiddle 78958c08bf 49601: don't create ambiguous history file entries for lines ending with a backslash 3 years ago
Paul Seyfert 5fe498124d github #83: _git-push, _git-send-pack: Make --push-option repeatable. 3 years ago
Daniel Shahaf 1168c6c3ea 49448: docs: Fix pointers to the `Widgets', `User-defined Widgets', and `Standard Widgets' sections.
The latter two didn't have their own texinode()s.  Various places, both
those sections' subsections and elsewhere in the manual, linked to the
first section rather than to the third.  For instance, zshcontrib(1)
pointed to "noderef(Miscellaneous) in noderef(Zle Widgets)", even though
the former (currently §18.6.6) is not under the latter (currently §18.4).

Add texinode()s and fix those pointers.
3 years ago
Daniel Shahaf e8d49addc0 49447: docs: _wanted: Clarify the example and point to another one. 3 years ago
Daniel Shahaf ff1f7769ee 49446: docs: Add texinode()s, so the next commit can link directly to a subsection. 3 years ago
Daniel Shahaf 94563d5ad1 49445: docs: Clean up some subsection references. 3 years ago
Daniel Shahaf 676aaf23c3 49449: _zstat: Don't offer -o after -s, since -s is ignored when both -s and -o are specified. 3 years ago
Daniel Shahaf 067f570f23 unposted: Add ChangeLog for the previous commit. 3 years ago
Daniel Shahaf 709f1057b7 47599 (tweaked): New test for '{foo,bar}' in command position
It's currently treated as a list but should perhaps be a brace expansion.
3 years ago
Oliver Kiddle 16d5d6a9da 49597: add a helper for completing numbers with unit suffixes and separate out defaults, ranges and units in completion descriptions 3 years ago
Jun-ichi Takimoto 138f5bf144 49586: fix :a and :A modifiers (with PWD="/") on Cygwin⁩ 3 years ago
Oliver Kiddle 973e356c34 49594: adapt to changes in 49499 to ensure file modes starting with dash aren't taken to be flags 3 years ago
Oliver Kiddle 8cf76fb8f9 49584: allow for build options in gem install completion 3 years ago