1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-31 23:31:03 +02:00
Commit graph

432 commits

Author SHA1 Message Date
Oliver Kiddle
16d5d6a9da 49597: add a helper for completing numbers with unit suffixes and separate out defaults, ranges and units in completion descriptions 2021-11-24 23:09:38 +01:00
Oliver Kiddle
b60bab1cc1 49345: fix git file completion for paths starting with ../ 2021-09-04 13:11:07 +02:00
Oliver Kiddle
64befeb4ca 49327: complete for new git maintenance, for-each-repo, sparse-checkout and bugreport commands 2021-08-29 17:12:56 +02:00
Oliver Kiddle
e6fdd35a83 49150: consistently use singular form for headings on completion match groups 2021-07-09 00:23:52 +02:00
dana
7269bc1ac4 48338: _git: Support case-insensitive path matching 2021-04-10 15:54:26 -05:00
Štěpán Němec
42de9318f1 48231: add missing git --pretty formats and improve descriptions 2021-03-28 10:49:34 +02:00
Oliver Kiddle
2644e3097d users/26107: complete changed files after git diff HEAD 2020-10-29 21:44:19 +01:00
Daniel Shahaf
a4b4a3a7c7 46131: _git-config: Partly fix a bug whereby a 'foo.ba<TAB>' wouldn't be completed to 'foo.bar.baz'.
Now it properly gets completed, but in the case of gpg.openpgp.program,
the description would be shown as "unknown option name", that being the
description of gpg.*.program via `git help -c`, which shadows the
more description of gpg.openpgp.program in $git_options.
2020-06-28 13:01:09 +00:00
Daniel Shahaf
1776422438 46128: _git: Complete more options and diff/merge tools. 2020-06-28 13:01:09 +00:00
Daniel Shahaf
5584badbea 46129: _git-config: Fix a bug where a second trailing dot would be incorrectly offered. 2020-06-28 13:01:09 +00:00
Daniel Shahaf
c1c1fb9b2c 46130: _git-config: Complete some more options. 2020-06-28 13:01:09 +00:00
Miroslav Koškár
c74b3c8919 46140: _git: Fix insufficiently quoted pattern 2020-06-27 20:35:08 +00:00
Miroslav Koškár
d839833e4e 46139: _git: Remove hanging whitespaces 2020-06-27 20:32:39 +00:00
Gastón Haro
a6610c4a17 github : _git-restore: Complete arguments to the --source option after a '=' sign 2020-03-28 22:49:41 +00:00
Gastón Haro
f306221674 github : Better restrict git-restore(1) file completions
Add support to the -S and -W options.

Remove the facility for completing files from the tree specified by the
--source argument since, upon testing in git 2.26.0, that doesn't seem
to be correct behaviour.  (Note git-restore(1) says the command is
experimental and its semantics may change.)  See discussion on the PR
for details.
2020-03-28 22:49:41 +00:00
dana
754658aff3 unposted: _git: Fix copy/paste error in earlier commit that broke git stash drop
This was broken by workers/44923 (8aa84bd5fc)
2020-03-13 09:46:14 -05:00
Daniel Shahaf
6fc8e8628f Merge remote-tracking branch 'origin/master' into 5.9
* Test/D02glob.ztst:
  On the "unreadable directories can be globbed (users/24619, users/24626)"
  test, resolve conflicts by removing the Cygwin-only skip that has been added
  in master, since the test is passing on this branch.  This effectively reverts
  workers/45492.  See discussion starting in workers/45504.

* origin/master:
  unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
  45509: fix typos in B01cd.ztst
  45490 (+45495 and a test): refactor rlimits.c
  github : Fix typo: longson should be loongson
  users/24710: Fix job control problem with sudo.
  45492: skip test added by users/24633 on Cygwin
  45488: COMP_WORDS for bash need "$@"-style quoting
  45487: Missing mod_export declarations for AIX
  45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function.
  45463: test: kill: Document why we use SIGURG
  45453: builtins: kill: Do not signal current process group when pid is empty
  45452: builtins: kill: Add `kill ''` regression test with explicit sigspec
  45451: builtins: kill: Add basic test suite
  github #48/0002: vcs_info git: properly detect bare repositories
  github #48/0001: vcs_info git: avoid warnings in bare repositories
  unposted: Post-release version bump
  unposted: Release 5.8
  CVE-2019-20044: Update change log for preceding commits
  Update NEWS/README
  Add unsetopt/PRIVILEGED tests
  Clean up error-message white space
  Improve PRIVILEGED fixes (again)
  Improve PRIVILEGED fixes
  Drop privileges securely
  unposted: V01zmodload: Fix failing test from workers/45385
  45423: _su: Improve arg handling, shell look-ups
  unposted: _zip: Recognise '--'
  45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features.
  unposted: Test release: 5.7.1-test-3
  zsh/system: Fix infinite loop in sysread
  _diff_options: Restore -w completion lost in workers/43351
  unposted: Fix ChangeLog typo.
  45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh.
  45373: Fix ERR_EXIT bug in else branch of if.
  45372: Record a symlink loop bug involving :P
  45365: _git: Fix __git_recent_branches for the case when a commit has an empty message
  45343: Queue signals around arithmetic evaluations
  45344: Document where third-party completion functions should be installed.
  45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload
  unposted: internal: Add some comments and fix indentation.  No functional change.
  45340: internal: Document the difference between paramtab and realparamtab.
  45332: _git: add completion for git-version
  _brace_parameter: add missing \

Conflicts:
	ChangeLog
	Test/D02glob.ztst
	Test/V01zmodload.ztst
2020-03-07 21:36:46 +00:00
WGH
e71ba9704f 45365: _git: Fix __git_recent_branches for the case when a commit has an empty message 2020-02-02 07:32:14 +00:00
Eitan Adler
e626f57613 45332: _git: add completion for git-version
Signed-off-by: Eitan Adler <lists@eitanadler.com>
2020-01-19 23:32:37 +00:00
Daniel Shahaf
bcd78756c8 45313: _git: Support completion from outside of a worktree when --git-dir/--work-tree are specified on the command line
Revised version of workers/41523.
2020-01-17 21:52:45 +00:00
Daniel Shahaf
e899c21863 Merge remote-tracking branch 'origin/master' into 5.9
Right now, as we're preparing to tag the 5.8 release, the 5.9 branch is
maintained as a topic branch off master.

* origin/master:
  45287: zshexpn: Describe parameter elision and add some introductory prose
  45302: bin_umask(): Queue signals around umask().
  users/24656: docs: Add an example of setting and querying zstyles
  users/24659: Cross-ref doc for matchers.
  45296: D02glob: Clean up after test from users/24633
  45290: New helper script for listing XFail tests.
  users/24633: Add an xfail test for users/24619.
  unposted: additional typo fix
  45280: _git: add -local variants
  users/24628 (fixed): More doc for selectw-word-style widgets.
  45266: Fix losetup completion, broken in da085b7a20 (41720).
  unposted: Fix punctuation.
  use /dev/fd on Cygwin for process substitution
  unposted: Two additional typo fixes.
  Fix typos reported by codespell in shell code
  Fix typos reported by codespell in Src/
  45269: Fix misspellings in completions and elsewhere.
  45261: _gcc: Detect clang-as-gcc
  unposted: internal: Remove Vim modeline that interferes with ztst.vim.
  unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.
  unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
  unposted: internal: zyodl.vim: Support yodl comments.
  github : Allow completion for picocom to list symlinks to character devices
  45245: _gcc: add some clang specific warnings
  45231: _rsync: When completing remote modules, ignore more of the motd.
  unposted: _tac: Eliminate superfluous variable
  45226: _man: Improve completion of file paths
  45184: Clarify documentation of %-sequences understood by compadd -[Xx]
  45239: Remove 'appendhistory' from zsh-newuser-install
  45218: add more options to swaks completion
  45196: fix completion after make -C, allowing for -C being used multiple times
  unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)".
  45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match.
  45183: Improve documentation examples
  unposted: Add some tests for ${(S)}, including a regression test for workers/45164.
  45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
  45169/0001: In the test suite, allow test cases to be marked as expected to fail.
  users/24582 + users/24583: Add regression tests for the previous commit.
  24581: Fix array assignments in shell word splitting and completion.
  45160: zshexpn: Expand documentation of (S)
  45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
  unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter.
  45130: _multi_parts: Always pass -f to compadd if given by caller
  unposted: zerrmsg(): Fix macro guard missed in previous commit
  unposted: ChangeLog for last commit
  internal: Allow %L in zerrmsg() in non-debug builds, too.
2020-01-15 22:49:09 +00:00
Daniel Shahaf
22c0fe02a5 45288: _git: Complete bisect/new as well as bisect/bad.
Also, complete the bisect/old-$commithash ref names.
2020-01-15 22:41:25 +00:00
Eitan Adler
5482d65d5c 45280: _git: add -local variants
Technically all timezone formats support the "-local" suffix but it is
not meaningful for all of them. As such just list out the specific
formats which it does.

Also adjust the 'default' description
2020-01-11 17:37:44 +01:00
Mikael Magnusson
66caa81ab7 Fix typos reported by codespell in shell code 2020-01-09 14:51:08 +01:00
Jens Schleusener
11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
Oliver Kiddle
8aa84bd5fc 44923: update options for git 2.24 2019-11-24 22:58:38 +01:00
Daniel Shahaf
dca638e301 44797: _git-config: Complete unknown options from 'git help -c'. 2019-10-02 17:11:11 +00:00
Oliver Kiddle
0ff02590c3 44779: completion for new git switch and git restore commands 2019-09-27 00:16:54 +02:00
Tobias Schulte
bed4e91681 github : fix completion text for git update-index --chmod 2019-09-18 16:29:47 +00:00
Oliver Kiddle
4b5b1563a8 44551: update for new git changes 2019-07-19 01:42:26 +02:00
Oliver Kiddle
cd6fd2b0a3 44274: allow finer control of completion match soring with compadd's -o option 2019-05-07 23:24:49 +02:00
dana
3e67e8347c 44111: _git: Use git rev-list for log messages
This side-steps issues related to `git log` respecting settings like
log.showSignature
2019-03-21 17:02:16 -05:00
dana
29222ca186 44080: Completion: Fix several option-description typos 2019-02-26 01:21:29 -06:00
Fredric Silberberg
4f6ac08af3 github : Fix a typo in the git tag completion. 2019-01-28 00:48:23 +00:00
dana
35c7b0f9e9 43974: _git: Always offer -F/-m for git tag 2019-01-04 15:12:31 -06:00
Wieland Hoffmann
11c84dcef4 github : Add completion support for Gits --color-moved option and color settings
--color-moved was added in Git 2.15.
2018-11-02 00:45:35 +01:00
Oliver Kiddle
8c57505314 43698: update options for git 2.19.1 2018-10-17 17:56:36 +02:00
Daniel Shahaf
b44be21525 43443: _git: When completing worktrees, show the ref and hash of each worktree. 2018-09-12 15:12:09 +00:00
Daniel Shahaf
7ae2be3a2f 43442: _git: Break out a helper function. 2018-09-12 15:12:07 +00:00
Oliver Kiddle
410c30a25b unposted: git describe's --long and --abbrev options are not mutually exclusive 2018-08-31 23:17:28 +02:00
Oliver Kiddle
36ac12d0b6 43359: further review of git remote set-url completion 2018-08-31 23:10:36 +02:00
pseyfert
e754b18ca7 42810: git remote set-url completion 2018-08-31 22:58:52 +02:00
Marc Cornellà
99fd8c0fe9 unposted (PR ): __git_files: fix double quotation of star
This fixes the double quote introduced by aa160fc8, so that the end result of
the parameter expansion is $pref followed by \* (a quoted star), meaning
`git ls-files` gets a literal star, not an expanded list of matching files, as
was intended in commit cc7437bf.

Fixes completion of `git add ../<TAB>`.
2018-08-12 19:37:47 +00:00
Oliver Kiddle
afd008d96b 43073: various completion option updates 2018-06-21 13:28:24 +02:00
Tim Smith
25e9590e09 43006: complete modified files after git stash -- 2018-06-18 09:23:27 +02:00
Oliver Kiddle
4dddf3aa6e users/23484: be consistent on matcher specs for git branches to fix issue with partial matching 2018-06-18 09:19:26 +02:00
Peter Stephenson
fa441fa20e 42752: enhance git external alias completion
If alias expands to !cmd-name, complete as a normal command
line after cmd-name.
2018-05-08 17:13:12 +01:00
Oliver Kiddle
39f58eb318 42659: various completion option updates 2018-04-16 17:02:56 +02:00
Oliver Kiddle
4977ec1398 42491 based on 42000 (Andrei Shevchuk): factor ssh host completion for use for mosh and git 2018-03-24 00:09:12 +01:00
Daniel Hahler
1142e2dedb 42364: _git: fix __git_ignore_line to ignore the current word
Before this patch "git branch -d master<tab>" would result in
"no matches found", while "master" itself should get completed here.

The "(bQ)" (added in 527badc23, via 38129?!) does not seem to be necessary
anymore: with files "f\[a-z\]o" and "foo", "git add f[a-z]o <tab>"
offers "f\[a-z\]o", but not "foo".
2018-02-22 23:41:13 +01:00