From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17503 invoked by alias); 20 Oct 2013 17:48:04 -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: 31864 Received: (qmail 7320 invoked from network); 20 Oct 2013 17:47:56 -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_FILL_THIS_FORM_SHORT,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 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=DNIkwzWrNwsfhYlFkgFhfdADXJj2KAS7E6UcimWgg+U=; b=Zvjdy45CafrE9ZGuQymEbktFUX/faVZIkecASe31wLgoh2Ai2gsBJDrtCbKiELtY02 V1snS0Osv4+JsSL9Zu2PQuVQhjGb4THpONT9L+5A6v6y9b2Bbx6AC56Prkq3eJSPthwE q3yuf2Ih1D7Jp4QZleJED8BL8KqOSWIwByQ60kbfC2chXSXYfgGT0iwQ+Oyt40te/6qv JJuW3fKvAR8LeCCxq2fEa6IbNggOvBVCdde4yTc347+cQxtqHCcI9BZGC4sznj4tk3rk DiBQLIKEbVntRiWDMbdVBwbDn/dynDt6ks1i+xNzxLpngN44qGZlWnPBsRwx8IcRPKZB ISPQ== X-Received: by 10.152.26.72 with SMTP id j8mr10594120lag.19.1382291273170; Sun, 20 Oct 2013 10:47:53 -0700 (PDT) From: =?UTF-8?q?=C3=98ystein=20Walle?= To: zsh-workers@zsh.org Cc: =?UTF-8?q?=C3=98ystein=20Walle?= Subject: [PATCH 5/6] _git: Add two sub-comamnds introduced in v1.8.4 Date: Sun, 20 Oct 2013 19:43:33 +0200 Message-Id: X-Mailer: git-send-email 1.8.4.1.516.g1d25dd4 In-Reply-To: References: In-Reply-To: References: Add _git-check-ignore() and _git-check-mailmap() --- Completion/Unix/Command/_git | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 36e9707..0f41acb 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -399,6 +399,23 @@ _git-bundle () { return ret } +(( $+functions[_git-check-ignore] )) || +_git-check-ignore () { + _arguments \ + '(-q --quiet)'{-q,--quiet}'[do not output anything, just set exit status]' \ + '(-v --verbose)'{-v,--verbose}'[output details about the matching pattern (if any) for each pathname]' \ + '--stdin[read file names from stdin instead of from the command-line]' \ + '-z[make output format machine-parseable]' \ + '(-n --non-matching)'{-n,--non-matching}'[show given paths which do not match any pattern]' \ + '*:: :->file' && ret=0 +} + +(( $+functions[_git-check-mailmap] )) || +_git-check-mailmap () { + _arguments \ + '--stdin[read contacts from stdin after those given on the command line]' +} + (( $+functions[_git-checkout] )) || _git-checkout () { # TODO: __git_tree_ishs is just stupid. It should be giving us a list of tags @@ -5008,6 +5025,8 @@ _git_commands () { local -a plumbing_internal_helper_commands plumbing_internal_helper_commands=( check-attr:'display gitattributes information' + check-ignore:'debug gitignore/exclude files' + check-mailmap:'show canonical names and email addresses of contacts' check-ref-format:'ensure that a reference name is well formed' fmt-merge-msg:'produce merge commit message' mailinfo:'extract patch and authorship from a single email message' -- 1.8.4.1.516.g1d25dd4