From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23013 invoked from network); 25 Jan 2008 13:53:41 -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; 25 Jan 2008 13:53:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 82498 invoked from network); 25 Jan 2008 13:53:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jan 2008 13:53:37 -0000 Received: (qmail 1168 invoked by alias); 25 Jan 2008 13:51:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24464 Received: (qmail 616 invoked from network); 25 Jan 2008 13:50:37 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Jan 2008 13:50:37 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id ABB2F80190F6 for ; Fri, 25 Jan 2008 14:50:29 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id A9A765C1A0; Fri, 25 Jan 2008 08:50:27 -0500 (EST) Date: Fri, 25 Jan 2008 08:50:27 -0500 From: Clint Adams To: Dominik Vogt Cc: Zsh Workers Subject: Re: [PATCH] improved git completion Message-ID: <20080125135027.GA19446@scowler.net> Mail-Followup-To: Dominik Vogt , Zsh Workers References: <20080124184704.GA864@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080124184704.GA864@gmx.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV 0.91.2/5550/Fri Jan 25 08:02:45 2008 on bifrost X-Virus-Status: Clean On Thu, Jan 24, 2008 at 07:47:04PM +0100, Dominik Vogt wrote: > 0001* > > Removes trailing whitespace from the file. This should achieve that. Index: Completion/Unix/Command/_git =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v retrieving revision 1.58 diff -u -r1.58 _git --- Completion/Unix/Command/_git 22 Jan 2008 17:17:00 -0000 1.58 +++ Completion/Unix/Command/_git 25 Jan 2008 13:47:17 -0000 @@ -1663,7 +1663,7 @@ '--all-match[all patterns must match]' \ ':pattern:' \ '*::tree-or-file:->files' && ret=0 - + case $state in (files) integer first_tree last_tree start end @@ -2573,7 +2573,7 @@ (( $+functions[__git_tree_ishs] )) || __git_tree_ishs () { - __git_commits + __git_commits } (( $+functions[__git_blobs] )) || @@ -2726,7 +2726,7 @@ while _tags; do while _next_label files expl ${suf:-remote directory}; do # [[ -n $suf ]] && compadd "$@" "$expl[@]" -d remdispf \ -# ${(q)remdispf%[*=@|]} && ret=0 +# ${(q)remdispf%[*=@|]} && ret=0 compadd ${suf:+-S/} "$@" "$expl[@]" -d remdispd \ ${(q)remdispd%/} && ret=0 done @@ -2934,7 +2934,7 @@ compset -P 'remotes.' __git_remote-groups - return + return elif [[ -prefix gitcvs.* ]]; then names=( 'enabled:whether the cvs pserver interface is enabled' @@ -3805,7 +3805,7 @@ # # -t can be used to specify a tag to use (default: booleans). # -l can be used to specify a label to use (default: 'boolean'). -# +# # The first argument is the default value, so that the description of the # default value can be suffixed with " (default)". The second argument # is the description for the true value. If a third argument is given, @@ -3814,7 +3814,7 @@ # "don't ". (( $+functions[__git_boolean_settings] )) || __git_boolean_settings () { - local tag label garbage + local tag label garbage zparseopts -D -E -a garba S: M: J: V: 1 2 n F: X: -t=tag -l=label