From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 576 invoked from network); 9 Mar 2008 12:28:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Mar 2008 12:28:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 29271 invoked from network); 9 Mar 2008 12:28:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Mar 2008 12:28:31 -0000 Received: (qmail 12539 invoked by alias); 9 Mar 2008 12:28:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24702 Received: (qmail 12528 invoked from network); 9 Mar 2008 12:28:29 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 9 Mar 2008 12:28:29 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id C1AC18028AED for ; Sun, 9 Mar 2008 13:28:24 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id A340F5C1ED; Sun, 9 Mar 2008 08:28:23 -0400 (EDT) Date: Sun, 9 Mar 2008 08:28:23 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _git / partial reversion of 24701 Message-ID: <20080309122823.GA19954@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/6183/Sun Mar 9 11:42:27 2008 on bifrost X-Virus-Status: Clean I've been waiting for the mail to come in so I could reply to it, but it just won't arrive. I was a little overzealous in 24701, and this might work a bit better until someone cleans up the $words madness above it. Index: Completion/Unix/Command/_git =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v retrieving revision 1.61 diff -u -r1.61 _git --- Completion/Unix/Command/_git 9 Mar 2008 12:16:55 -0000 1.61 +++ Completion/Unix/Command/_git 9 Mar 2008 12:22:39 -0000 @@ -4155,8 +4155,8 @@ __git_aliases_and_commands ;; (options) - curcontext="${curcontext%:*:*}:git-$service:" - _call_function ret _git-$service + curcontext="${curcontext%:*:*}:git-$words[1]:" + _call_function ret _git-$words[1] ;; esac else