From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3996 invoked from network); 6 May 2009 16:35:58 -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=AWL,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; 6 May 2009 16:35:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 41452 invoked from network); 6 May 2009 16:35:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 May 2009 16:35:43 -0000 Received: (qmail 16584 invoked by alias); 6 May 2009 16:35:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26937 Received: (qmail 16553 invoked from network); 6 May 2009 16:35:28 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 May 2009 16:35:28 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 5D10880590A3 for ; Wed, 6 May 2009 18:35:07 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 0C27810494D; Wed, 6 May 2009 16:35:21 +0000 (UTC) Date: Wed, 6 May 2009 16:35:21 +0000 From: Clint Adams To: martin f krafft , 527300@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#527300: git-log branchname suggests refs instead of pathnames Message-ID: <20090506163521.GA2439@scru.org> Mail-Followup-To: martin f krafft , 527300@bugs.debian.org, zsh-workers@sunsite.dk References: <20090506161550.GA23943@piper.oerlikon.madduck.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090506161550.GA23943@piper.oerlikon.madduck.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/9333/Wed May 6 05:55:26 2009 on bifrost X-Virus-Status: Clean On Wed, May 06, 2009 at 06:15:50PM +0200, martin f krafft wrote: > git log branchname [-- ]path (with or without --) > > This should suggest local files (and index files), but not more > refs. Does this do the right thing? Index: Completion/Unix/Command/_git =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v retrieving revision 1.120 diff -u -r1.120 _git --- Completion/Unix/Command/_git 20 Apr 2009 03:15:43 -0000 1.120 +++ Completion/Unix/Command/_git 6 May 2009 16:33:22 -0000 @@ -1815,8 +1815,8 @@ case $state in (files) _arguments -S \ - '::index file:__git_cached_files' \ - '*::branch:__git_commit_ranges2' && ret=0 + ':branch:__git_commit_ranges2' \ + '*:index file:__git_cached_files' && ret=0 ;; esac }