From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16632 invoked by alias); 22 Sep 2013 10:49:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31745 Received: (qmail 16418 invoked from network); 22 Sep 2013 10:48:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.215.54 as permitted sender) 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== X-Received: by 10.152.116.109 with SMTP id jv13mr545985lab.30.1379846923896; Sun, 22 Sep 2013 03:48:43 -0700 (PDT) From: =?UTF-8?q?=C3=98ystein=20Walle?= To: zsh-workers@zsh.org Cc: m0viefreak Subject: [PATCH v2 04/14] _git: correctly use __git_guard_number in some cases Date: Sun, 22 Sep 2013 12:48:18 +0200 Message-Id: <1c318109e550184e3b7a81c52884eab1dc73bf4a.1379846744.git.oystwa@gmail.com> X-Mailer: git-send-email 1.8.2.2 In-Reply-To: References: In-Reply-To: References: From: m0viefreak 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