From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12043 invoked from network); 21 Aug 2008 01:02:08 -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; 21 Aug 2008 01:02:08 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 23463 invoked from network); 21 Aug 2008 01:02:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Aug 2008 01:02:00 -0000 Received: (qmail 15914 invoked by alias); 21 Aug 2008 01:01:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25495 Received: (qmail 15888 invoked from network); 21 Aug 2008 01:01:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Aug 2008 01:01:43 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 35DD78030846 for ; Thu, 21 Aug 2008 03:01:28 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id B1C29104086; Thu, 21 Aug 2008 01:01:26 +0000 (UTC) Date: Thu, 21 Aug 2008 01:01:26 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Subject: git checkout -- Message-ID: <20080821010126.GA21524@scru.org> 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.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/8061/Thu Aug 21 02:00:17 2008 on bifrost X-Virus-Status: Clean I'm gonna assume not and do this: Index: Completion/Unix/Command/_git =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v retrieving revision 1.86 diff -u -r1.86 _git --- Completion/Unix/Command/_git 21 Aug 2008 00:38:20 -0000 1.86 +++ Completion/Unix/Command/_git 21 Aug 2008 01:00:02 -0000 @@ -1543,10 +1543,8 @@ new_branch_reflog_arg='-l[create the new branch'\''s reflog]' fi - if (( words[(I)--] > 0 && words[(I)--] < CURRENT )); then - _arguments -C -S \ - - update-files \ - '*::file:->files' && ret=0 + if compset -N '--'; then + __git_cached_files else _arguments -C -S \ '-q[suppress feedback messages]' \