Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: remove "-A '-*'" with _arguments for some commands
- X-seq: zsh-workers 39822
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: remove "-A '-*'" with _arguments for some commands
- Date: Thu, 3 Nov 2016 16:04:55 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1478185508; bh=RHl4+jDx9BNgAnI NcKOpWKPvXJMdqzJepswjxDK3BD4=; b=TK47/UQ6ivSmxNgXiXPsqcwRTBOWfKK /ZpW0zmT1k7+CpjUrPmEAEKY47SPOzYLkSwGOh347S3NImuwubAhvCwo2I9z6d4m WJgYxzCMdj1EOR27V2YGtQ+OPXWQlH92eaxOvBBwHcSUJC4RW1cTWu8wDEMFRuFs yLLTas8/eQs4=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
From: Daniel Hahler <git@xxxxxxxxxx>
With e.g. `git rebase origin/master` you can have options like
`--no-autosquash` after the argument.
I have tried the commands where this patch removes `-A`.
Commands like `git fetch-pack` that do not support options after
arguments are left unchanged.
---
Completion/Unix/Command/_git | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index f10f80b..17a7b1e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1383,7 +1383,7 @@ _git-rebase () {
'(--autosquash )--no-autosquash[do not check for auto-squash boundaries]')
fi
- _arguments -A '-*' \
+ _arguments \
- actions \
'(-)--continue[continue after resolving merge conflict]' \
'(-)--abort[abort current rebase]' \
@@ -1921,7 +1921,7 @@ _git-tag () {
)
fi
- _arguments -A '-*' \
+ _arguments \
- creation \
'(-a --annotate -s --sign -u --local-user)'{-a,--annotate}'[create an unsigned, annotated tag]' \
'(-a --annotate -s --sign -u --local-user)'{-s,--sign}'[create a signed and annotated tag]' \
@@ -4539,7 +4539,7 @@ _git-pack-objects () {
fi
# NOTE: --index-version is only used by the Git test suite.
- _arguments -A '-*' \
+ _arguments \
'(-q --quiet)'{-q,--quiet}"[don't report progress]" \
'(-q --quiet --all-progress)--progress[show progress meter]' \
'(-q --quiet --progress --all-progress-implied)--all-progress[show progress meter during object writing phase]' \
@@ -4876,7 +4876,7 @@ _git-ls-files () {
(( $+functions[_git-ls-remote] )) ||
_git-ls-remote () {
# TODO: repository needs fixing
- _arguments -A '-*' \
+ _arguments \
'(-q --quiet)'{-q,--quiet}"[don't print remote URL]" \
'--upload-pack=[specify path to git-upload-pack on remote side]:remote path' \
'(-h --heads)'{-h,--heads}'[show only refs under refs/heads]' \
@@ -5007,7 +5007,7 @@ _git-show-ref () {
(( $+functions[_git-unpack-file] )) ||
_git-unpack-file () {
- _arguments -A '-*' \
+ _arguments \
'(:)-h[display usage information]' \
'(-): :__git_blobs'
}
--
2.10.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author