Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 04/16] _git: correctly use __git_guard_number in some cases
- X-seq: zsh-workers 31596
- From: Øystein Walle <oystwa@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 04/16] _git: correctly use __git_guard_number in some cases
- Date: Sun, 28 Jul 2013 18:22:01 +0200
- Cc: m0viefreak.cm@xxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references; bh=rH9GdjtTd5sajMHxtSh+kX/8iGSP+i5ADEpiyvWTJjg=; b=pt7FYbN9S/zpl3adG5hKN73RuFUtfqPcs8BzHImCin8uFn/GlP6n8gOVkFtDFIBe0V n/OyvwGk0IVKGBuKZezTtDHjKXW52bpHtgbyyroUSSTJbtevP5xSmQDxWtBZhGmodfq1 saHVicIMBJeLG2ChQaVUkg47wos+JNPinV77VSk+d1N4z2PB/Uck0LJet4GwBYz4KsTo u9izaXKXSHh1fcU2ptyO/N9SxYIGrvFHBMfrosJS17evP+0VOUI77n+IwnZq9dffYH0q Ya2BGB21iiWKruYU6Jrda6eAs5O+3xlKGgqEJTNmFVjWxat4jXdg4PMtFuGwWPIY3Ivp 531w==
- In-reply-to: <cover.1375006129.git.oystwa@gmail.com>
- In-reply-to: <cover.1375006129.git.oystwa@gmail.com>
- 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
- References: <cover.1375006129.git.oystwa@gmail.com>
- References: <cover.1375006129.git.oystwa@gmail.com>
From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
The space is relevant to make the help text work as intended.
---
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 3eff9f8..6370c99 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -845,7 +845,7 @@ _git-grep () {
'(-a --text)'{-a,--text}'[process binary files as if they were text]' \
'(-i --ignore-case)'{-i,--ignore-case}'[ignore case when matching]' \
'-I[do not match pattern in binary files]' \
- '--max-depth=[descend at most given levels of directories]:__git_guard_number depth' \
+ '--max-depth=[descend at most given levels of directories]: :__git_guard_number depth' \
'(-w --word-regexp)'{-w,--word-regexp}'[match only whole words]' \
'(-v --invert-match)'{-v,--invert-match}'[select non-matching lines]' \
'( -H)-h[supress output of filenames]' \
@@ -2540,7 +2540,7 @@ _git-config () {
(umask)
_alternative \
'values:value:(user)' \
- 'umasks::__git_guard_number umask' && ret=0
+ 'umasks: :__git_guard_number umask' && ret=0
;;
esac
;;
@@ -2902,12 +2902,12 @@ _git-blame () {
(line-range)
if compset -P '([[:digit:]]#|/[^/]#(\\?[^/]#)#/),'; then
_alternative \
- 'line-numbers::__git_guard_number "line number"' \
+ 'line-numbers: :__git_guard_number "line number"' \
'regexes::_guard "(/[^/]#(\\?[^/]#)#(/|)|)" regex' \
'offsets::_guard "([+-][[:digit:]]#|)" "line offset"' && ret=0
else
_alternative \
- 'line-numbers::__git_guard_number "line number"' \
+ 'line-numbers: :__git_guard_number "line number"' \
'regexes::_guard "(/[^/]#(\\?[^/]#)#(/|)|)" regex' && ret=0
fi
;;
@@ -3142,7 +3142,7 @@ _git-show-branch () {
(limit-and-base)
if compset -P '[[:digit:]]##,'; then
_alternative \
- 'counts::__git_guard_number count' \
+ 'counts: :__git_guard_number count' \
'dates::__git_datetimes' && ret=0
else
__git_guard_number limit
--
1.8.2.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author