From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18957 invoked from network); 29 Jan 2009 12:24:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Jan 2009 12:24:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 72172 invoked from network); 29 Jan 2009 12:22:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jan 2009 12:22:59 -0000 Received: (qmail 9831 invoked by alias); 29 Jan 2009 12:22:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26474 Received: (qmail 9751 invoked from network); 29 Jan 2009 12:22:09 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Jan 2009 12:22:09 -0000 Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 96292802720F for ; Thu, 29 Jan 2009 13:22:06 +0100 (CET) Received: from ingmar by bach.exherbo.org with local (Exim 4.69) (envelope-from ) id 1LSVu2-0000Kp-VK; Thu, 29 Jan 2009 12:21:51 +0000 From: Ingmar Vanhassel To: Zsh Hackers' List Cc: Ingmar Vanhassel Subject: [PATCH] Add "git describe --tags" completion. Fix typos. Date: Thu, 29 Jan 2009 12:21:44 +0000 Message-Id: <1233231710-1204-3-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.0.1 In-Reply-To: <1233231710-1204-2-git-send-email-ingmar@exherbo.org> References: <1233231710-1204-1-git-send-email-ingmar@exherbo.org> <1233231710-1204-2-git-send-email-ingmar@exherbo.org> X-Virus-Scanned: ClamAV 0.92.1/8918/Thu Jan 29 12:42:19 2009 on bifrost X-Virus-Status: Clean --- Completion/Unix/Command/_git | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 7e6a174..9f758ec 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -769,14 +769,15 @@ _git-cat-file () { _git-describe () { _arguments \ '--all[use any ref found in "$GIT_DIR/refs/"]' \ + '--tags[use any ref found in "$GIT_DIR/refs/tags"]' \ '(--contains)--tags[use any tag found in "$GIT_DIR/refs/tags/"]' \ $abbrev_arg \ '--contains[find the tag after the commit instead of before]' \ - '--exact-match[only output exact matches, same as --canditates=0]' \ + '--exact-match[only output exact matches, same as --candidates=0]' \ '--always[show uniquely abbreviated commit object as fallback]' \ '--long[always show full format, even for exact matches]' \ '--match=[only consider tags matching glob pattern]:pattern' \ - '--candidates=-[consider up to given number of canditates]: :_guard "[[\:digit\:]]##" "number of canditates"' \ + '--candidates=-[consider up to given number of candidates]: :_guard "[[\:digit\:]]##" "number of candidates"' \ '--debug[display information about the searching strategy]' \ '*:committish:__git_committishs' && ret=0 } -- 1.6.0.1