Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH v2 04/14] _git: correctly use __git_guard_number in some cases
- X-seq: zsh-workers 31745
- From: Øystein Walle <oystwa@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH v2 04/14] _git: correctly use __git_guard_number in some cases
- Date: Sun, 22 Sep 2013 12:48:18 +0200
- Cc: m0viefreak <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:in-reply-to:references :in-reply-to:references; bh=YbzXN2ynbkFutfa5Q+PRWi7dYW6QOozAZwq9fmGSigo=; b=auugry9hiqXqDgIgHvYNXE9GhIcsrJsFYIzFgsZbiXYfpqImsWpG4gdFzr1t4mNRBs FYHshBYFrqf/3pe9h/U/W/Y1DuOeZ4se/gyrEhNgh33B0PcGrVHQBTf2U+E4KVjsZ1Pa gtzhXgIIADSMVlLNlONG+lHX2ZjI7QODLdcDTXu9RPhkLFbTRnJQewujgRaLAnhXAIW9 n0PsOkFNWmi1zAiMHSWleKWtwqbhFGPKVaMaZYNGY4FQ1CfW7d+GUvnlc/ykfUPQI1NO P2S1v/L9m1lEDzx5eJ6ofbqE0L7EzgevJIhvAbCqWCWhFYshMN+UQ/zAKB16DHQPHkpV qzWg==
- In-reply-to: <cover.1379846744.git.oystwa@gmail.com>
- In-reply-to: <cover.1379846744.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.1379846744.git.oystwa@gmail.com>
- References: <cover.1379846744.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 0f4ead3..6797f9c 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -850,7 +850,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]' \
@@ -2548,7 +2548,7 @@ _git-config () {
(umask)
_alternative \
'values:value:(user)' \
- 'umasks::__git_guard_number umask' && ret=0
+ 'umasks: :__git_guard_number umask' && ret=0
;;
esac
;;
@@ -2910,12 +2910,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
;;
@@ -3150,7 +3150,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