From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17440 invoked from network); 21 Aug 2008 00:21:15 -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; 21 Aug 2008 00:21:15 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 10501 invoked from network); 21 Aug 2008 00:21:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Aug 2008 00:21:05 -0000 Received: (qmail 3222 invoked by alias); 21 Aug 2008 00:20:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25492 Received: (qmail 3207 invoked from network); 21 Aug 2008 00:20:54 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Aug 2008 00:20:54 -0000 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by bifrost.dotsrc.org (Postfix) with ESMTP id E30878030846 for ; Thu, 21 Aug 2008 02:20:49 +0200 (CEST) Received: by ey-out-2122.google.com with SMTP id 25so13065eya.3 for ; Wed, 20 Aug 2008 17:20:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vKYtSMgmu0NDbBBd8JmGfFmf9LvQ4E/9jss+tzoK8hU=; b=WnQtITH2NWvYtmkLIT/FEaEcA3DUM7cZaZat53KSbsIDLs+h58QrzC6K6mnITrGGed 4azFTr4J5xTIcBlHByT0HUgpHjswH7WKsF0j7c3csuJmGbwHqVtnV+zPvY5MCyGt0wRz +jXfLZ8EFVgr44Mppz/YK6IQN3I6hcFrh/hlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ASLiv925uno6P4k6oBvFKh408CzC4Vx0PE8E7J5KVhHbo9IAnwx6scsTXxp+1dEA8a 80Mt2hvoUOUjw4sLRvv7QMzLJUGxw4iBeDyZwhjFksBBuanGRQtV09GMR3Gr0dwA+QaP x1/gAj06okTKlhENdCRnbZgVuNpAYvBeQHi6E= Received: by 10.210.120.17 with SMTP id s17mr927789ebc.181.1219278049701; Wed, 20 Aug 2008 17:20:49 -0700 (PDT) Received: by 10.210.19.20 with HTTP; Wed, 20 Aug 2008 17:20:49 -0700 (PDT) Message-ID: <237967ef0808201720x594dae53x215b078420b1ccb6@mail.gmail.com> Date: Thu, 21 Aug 2008 02:20:49 +0200 From: "Mikael Magnusson" To: zsh-workers@sunsite.dk Subject: Re: git checkout improvement In-Reply-To: <20080821000948.GA20166@scru.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080821000948.GA20166@scru.org> X-Virus-Scanned: ClamAV 0.92.1/8060/Wed Aug 20 22:17:24 2008 on bifrost X-Virus-Status: Clean 2008/8/21 Clint Adams : > Maybe we should abstract the words[(I)--] bit into some kind of > _git_arguments function. I also noticed completing files from the index doesn't work as well as completing files from a given tree... eg, If you type git checkout HEAD gi you get git.c, but if you git checkout -- gi you get nothing. However, git checkout -- lists all the files, and lets you cycle through them until you reach git.c It uses __git_cached_files for that case, but some other places that call that work just fine with something already typed. You got any idea? -- Mikael Magnusson