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 #38 : 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 #32 : 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 #29 : 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 #26 ): __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
Daniel Hahler
2bf952b102
42324: _git: handle mutually exclusive options
...
Currently `git show --stat -p` is not considered a valid completion and
prevents further completions like `--no-abbrev`.
It is a valid use case however to use `--stat` with `-p` (and there is a
synonym `--patch-with-stat` for it even).
This patch changes `__git_setup_diff_options` to only handle mutually
exclusive arguments reported by Git (as a fatal error) in a special way.
2018-02-12 10:12:22 +01:00
Christian Hesse
dd8e55c46b
42333: git 2.16.0 no longer accepts an empty string as a pathspec element so replace empty strings with a dot
2018-02-08 00:49:46 +01:00
Daniel Hahler
2870302afa
42323: _git: move "local" statement out of loop
...
Fixup for 99cf61fd4
.
2018-01-24 21:55:27 +01:00
Oliver Kiddle
47430bcd7c
42317: completion option updates for commands that have had recent updates
2018-01-23 11:03:00 +01:00
Eric Cook
99cf61fd42
42171: prevent parameters of various parameters from becoming global
2018-01-02 14:38:03 -05:00
Daniel Shahaf
a254c1815a
42138: _git-revert: Complete recent commits first.
2017-12-20 04:13:39 +00:00
Oliver Kiddle
09939216d4
42019: update options in git completion to 2.15
...
also improve format completion for git tag and for-each-ref
2017-11-13 21:47:29 +01:00
Oliver Kiddle
85e56b5a48
41957: update git completion for git 2.14.3
2017-10-29 00:07:22 +02:00
Noah Pendleton
63271a4b93
41808: _git-cherry-pick: Typo fixes
2017-10-04 22:07:23 +00:00
Oliver Kiddle
f80fe2dfe9
41552: complete only branches after git worktree add --detach
...
the --detach is superfluous for other commits
2017-08-16 23:41:09 +02:00
Oliver Kiddle
943a061ea5
41493: fix to not print hash into terminal and update options for git 2.14
2017-08-06 00:28:22 +02:00
Daniel Shahaf
17a6eb655d
41475: _git: Complete files after 'reset' when there are no commits, when the 'verbose' style is set.
2017-08-02 14:09:57 +00:00
Daniel Shahaf
562482a495
unposted: _git: Fix style lookup for 'max-verbose'.
2017-07-31 00:52:49 +00:00
Fabian Klötzl
4a63a1793a
41414: fix for commas used in exclusion lists
...
also missing escape for _gcc and --no-index option for git diff
2017-07-14 12:07:49 +02:00
Oliver Kiddle
76a4a5ed3c
41419: update for git 2.13.2
2017-07-14 11:59:31 +02:00
Peter Stephenson
c5783576e8
41339: Unquote treeish argument for git checkout completion
2017-06-22 10:05:07 +01:00
Daniel Hahler
4fa7c6aecc
40943: __git_recent_commits: prefer recent commit objects
...
Without this "commit to be amended" shows up before "recent commit object
name" with `git commit --fixup`, but the recent commit objects are the
most useful here.
2017-04-23 22:27:38 +02:00
Daniel Shahaf
e869952200
40818: _git-checkout: When completing local heads, prefer recently-checked-out ones. (after 38592)
2017-03-14 11:14:14 +00:00
Daniel Shahaf
46233c4020
40817: __git_recent_branches: Retrieve less data, but faster.
...
By replacing the --grep-reflog=needle argument with a ${(M)...:#needle} filter,
we retrieve less data from the reflog, and consequently run (on my test cases)
16% to 40% faster. The trade-off is that we retrieve less data: instead of
retrieving the 1000 most recent 'checkout' operations, we retrieve the most
recent 1000 operations, which would include fewer than 1000 checkout operations.
Also change [[:xdigit:]] to [0-9a-f] since it's faster, however, the absolute
gain from this is minor compared to the cost of 'git reflog'.
2017-03-14 11:14:13 +00:00
Fabian Klotzl
7276d04934
40808: fix typos where (x,y) should have been (x y) in _arguments syntax
2017-03-09 20:29:27 -08:00
Oliver Kiddle
76a033e2cc
40715: update completion of git options for git 2.12.0
2017-03-04 00:37:04 +01:00
Daniel Shahaf
ec1bdab023
40494: _git: Use slashes matchspec for references (as already used for branch names).
2017-02-07 08:43:31 +00:00