1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00
Commit graph

179 commits

Author SHA1 Message Date
m0viefreak
ef4157fac4 31744: _git: make git submodule <cmd> completion work
The -A parameter in the main completion stopped completion
in the subcommands from working. Remove it.
2013-09-22 14:01:08 +02:00
m0viefreak
2813d8aa98 31743: _git: fix usage of ->int: for some entries in _git-config 2013-09-22 14:01:07 +02:00
m0viefreak
5f427b8245 31741: _git: fix a wrong variable in __git_config_values
This probably was a copy/paste mistake.
2013-09-22 14:01:06 +02:00
Luka Perkov
075ad840d6 31726: _git: add few more arguments for cherry-pick and revert
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-14 11:21:34 +02:00
Luka Perkov
c721356646 31708: _git: add --fixup and --squash options to commit
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-07 10:09:11 +02:00
Luka Perkov
a4245da999 31702: check for git rebase -i for autosquash 2013-09-06 21:48:00 +01:00
Ramkumar Ramachandra
2ea9cd4775 31288: _git: fix shortlog completer
Currently, __git-shortlog () says that 'git shortlog' can only accept
commits as arguments (probably because the official documentation says
this).  This is entirely untrue: shortlog can accept
commit-range-or-file, just like log can.  Fix the completer by copying
out segments from the __git-log () function.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-25 14:36:08 +02:00
Ramkumar Ramachandra
cbdedcfbfe 31289: _git: branch.*.pushremote, remote.pushdefault
The configuration variables branch.*.pushremote and remote.pushdefault
are relatively new, and are currently not completed by ZSH.  Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:44 +02:00
Ramkumar Ramachandra
d1a3075293 31286: _git: add a couple of browsers
Add google-chrome/chromium to the list of builtinbrowsers in
__git_browsers ().

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:43 +02:00
Torstein Hegge
cc7437bf2f 31159: git: Pass prefix filter to ls-files even if it matches no files
When a branch or tag name is completed with zsh in a large git repo, the
completion is slow if the given prefix doesn't match a file or directory in
the current working directory. Testing with linux.git, which contains release
tags like v3.9 and a directory virt/:

  git log v<tab>

takes about 0.5 seconds, while

  git log v3<tab>

takes about 25 seconds.

(Timed using zsh 4.3.17, on a fairly slow cpu. zsh from git appears to be
quite a bit faster, but the difference between completing v and v3 is still
large.)

The difference between the two is that v<tab> passes the result of v* to git
ls-files while v3<tab> determines that v3* matches no files, and passes an
empty prefix to git ls-files. So git ls-files lists all files in the repo
and passes that on to _multi_parts.

Making git do the expansion of the * after the prefix lets git ls-files v3*
return an empty list, making _multi_parts job easier.

This does not affect the behavior of git log <tab>, but improves the
performance of partial tag and branch tab-completion in the common case where
file names and tag/branch names don't overlap.
2013-04-20 22:29:02 +02:00
Frank Terbeck
abb32da0e7 31221: Handle zero defined aliases better 2013-04-05 20:19:33 +02:00
Oliver Kiddle
ce658b3c3c Benjamin R. Haskell: 30737: make custom completions for git aliases easier 2012-11-07 21:23:06 +00:00
Oliver Kiddle
a8ffff2cb7 users/17382: complete URLs for vim and make _remote_files more
consistent with _files
2012-11-07 20:59:09 +00:00
Mikael Magnusson
43ddb73297 unposted: fix a typo in _git from previous commit (reolved) 2012-03-06 16:38:25 +00:00
Clint Adams
45090b19df 30317: complete git merge --ff-only 2012-03-06 02:36:12 +00:00
Oliver Kiddle
c5fce37bce 30199: add (-.) to many completion _files globs 2012-02-10 17:09:05 +00:00
Mikael Magnusson
02dc5c681e 29998: _git: fix a typo (--rerbose). 2011-12-13 19:28:19 +00:00
Simon Ruderich
d374f2b180 29918: Completion: Add new _remote_files() helper and use it to reduce code duplication. 2011-12-09 22:39:08 +00:00
Simon Ruderich
6540e8d8cf 29916: Completion/Unix/Command/_git: Prevent clash with _remote_files() in _ssh. 2011-11-24 21:21:46 +00:00
Nikolai Weibull
9e8cdf31b9 29698: Completion/Unix/Command/_git: Complete diff options for git log 2011-08-17 10:50:26 +00:00
Nikolai Weibull
6b42b83f41 * 29582, 29589: Update handling of third-party Git commands 2011-07-22 13:08:25 +00:00
Nikolai Weibull
53998c2cf5 unposted: Completion/Unix/Command/_git: Use _files, not _path_files. 2011-07-22 09:44:22 +00:00
Nikolai Weibull
aad36667de unposted: Completion/Unix/Command/_git: Adjust some TODO items. 2011-07-21 11:37:45 +00:00
Nikolai Weibull
3eb0846645 unposted: Completion/Unix/Command/_git: Update git-add completion to not
complete already given file arguments and also to not list file completions if
an option is being completed.
2011-07-21 10:03:09 +00:00
Nikolai Weibull
d37eda52f3 unposted: Completion/Unix/Command/_git: Fix bug in git-add completion that
prevented -f option from being used correctly.
2011-07-21 09:15:41 +00:00
Nikolai Weibull
e3c1917345 unposted: Completion/Unix/Command/_git: Move _gitk and _tig to correct
location.
2011-07-21 09:08:32 +00:00
Nikolai Weibull
6502b38277 29272: Completion/Unix/Command/_git: Use return values correctly accross all
completion functions.
2011-07-21 09:05:57 +00:00
Frank Terbeck
eefe297228 29521: _git: Add `user-commands' support again. 2011-07-01 07:38:45 +00:00
Frank Terbeck
77b0e65eda 29519: _git: Pick up addon completions from $fpath. 2011-07-01 07:38:16 +00:00
Frank Terbeck
f5ba9011f0 29527: _git: Make file-completion fallback optional. 2011-07-01 07:37:44 +00:00
Frank Terbeck
3761265e45 29518: _git: Fall back to file completion for unknown sub-commands. 2011-07-01 07:36:48 +00:00
Nikolai Weibull
23102b3a9b unposted: Completion/Unix/Command/_git: Update git-branch completion to deal
with -r and -d correctly.
2011-05-29 15:10:30 +00:00
Mikael Magnusson
59a0b52e61 29328: Another missing backslash in _git, remove some not needed backslashes in array definitions. 2011-05-22 02:13:55 +00:00
Mikael Magnusson
72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Wayne Davison
a88f38b2c4 29315: add a missing backslash. 2011-05-18 22:12:18 +00:00
Frank Terbeck
c02d14eae3 Nikolai Weibull: 29166: _git: Speed improvements for file completion. 2011-05-17 18:42:57 +00:00
Nikolai Weibull
62444c9bfc 29273: Completion/Unix/Command/_git: Fix __git_guard_number 2011-05-17 17:15:13 +00:00
Mikael Magnusson
9a5fcb3c31 Nikolai Weibull: 29124: Fix -l option in _git. 2011-05-12 16:01:19 +00:00
Wayne Davison
15180bc0ec 29187: add a missing backslash. 2011-05-08 21:19:29 +00:00
Frank Terbeck
e38f65bba4 Simon Ruderich: 29041: _git: Add completion for `tig'. 2011-04-25 15:04:47 +00:00
Frank Terbeck
12d12ebc92 Felipe Contreras: 29028: _git: Add useful completion for `gitk'. 2011-04-25 11:50:14 +00:00
Frank Terbeck
37bb9f7353 Valentin Haenel: 29019: Fix git stash completion (apply and pop subcommands). 2011-04-21 20:57:51 +00:00
Frank Terbeck
fe5109bc43 Simon Ruderich: 28927: Fix "git tag -v" completion. 2011-04-15 14:32:09 +00:00
Frank Terbeck
cce858f5ae Nikolai Weibull: 28913: Fix typo which broke `send-email' completion. 2011-03-18 22:43:19 +00:00
Frank Terbeck
b85b9a229d Nikolai Weibull: 28911: Only show modified files for git-checkout without tree. 2011-03-18 22:39:41 +00:00
Frank Terbeck
9e2278e0c1 Nikolai Weibull: 28914: Typo fix in `cvsexportcommit' description 2011-03-18 22:35:52 +00:00
Wayne Davison
f2c4bb42f0 Nikolai Weibull's latest version. 2011-02-27 23:29:53 +00:00
Wayne Davison
ddee5deb2d Add completion for help subcommand to _git. 2010-12-04 18:08:12 +00:00
Clint Adams
7be8594c8c 28411: complete submodule and annex as subcommands; complete files when the subcommand is unknown. 2010-11-14 19:43:01 +00:00
Wayne Davison
c0325f5233 28000: make the branch arg for "git log" optional. 2010-07-24 19:01:22 +00:00