From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5931 invoked from network); 21 Aug 2008 02:18:38 -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 02:18:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 50652 invoked from network); 21 Aug 2008 02:18:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Aug 2008 02:18:29 -0000 Received: (qmail 9978 invoked by alias); 21 Aug 2008 02:18:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25496 Received: (qmail 9965 invoked from network); 21 Aug 2008 02:18:14 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Aug 2008 02:18:14 -0000 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by bifrost.dotsrc.org (Postfix) with ESMTP id CD6F68030846 for ; Thu, 21 Aug 2008 04:18:05 +0200 (CEST) Received: by nf-out-0910.google.com with SMTP id g13so1016931nfb.11 for ; Wed, 20 Aug 2008 19:18:05 -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=FrMlkGzoiPQJ9hP658NFMnP1EIXIR1G+rETsII0GMaY=; b=xV4bmjqfODGqwqC4XTiXphO0KGF1lQK2MNYvSEx5n+vjvDQVZ5SWr2HDfZXU2FpAhj 0Pwidl9PMCvajUzj7Y3Ui8usGkftH1fF50ke+TcwGN97ccJxqO4BAg/kRdMJTfAFyduM e/Ne6UHos/S2OpbN4m8YU02kCVuno5QWTjLJA= 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=s3dBrXfAgaM7H1VRwfPAC49WntQdZoC4MBLGx1VHpAlTaj7WcrFoExU1VFC/CJ/tHO MlUY7/qB65Ov+aOmdRtHLJSv94/x3PhqP470gN9p+kvIoThPq8j2cHCTn4zhS3FFyj/a 0NjYn50h8uPkAPjbhAVeWW5YUzlVkLMfY1Yn4= Received: by 10.210.87.19 with SMTP id k19mr1075590ebb.176.1219285085083; Wed, 20 Aug 2008 19:18:05 -0700 (PDT) Received: by 10.210.19.20 with HTTP; Wed, 20 Aug 2008 19:18:05 -0700 (PDT) Message-ID: <237967ef0808201918t4c21baefj456fb9be0605d430@mail.gmail.com> Date: Thu, 21 Aug 2008 04:18:05 +0200 From: "Mikael Magnusson" To: zsh-workers@sunsite.dk Subject: Re: git checkout improvement In-Reply-To: <20080821005259.GA21325@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> <237967ef0808201720x594dae53x215b078420b1ccb6@mail.gmail.com> <20080821005259.GA21325@scru.org> X-Virus-Scanned: ClamAV 0.92.1/8061/Thu Aug 21 02:00:17 2008 on bifrost X-Virus-Status: Clean 2008/8/21 Clint Adams : > On Thu, Aug 21, 2008 at 02:20:49AM +0200, Mikael Magnusson wrote: >> 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? > > I am getting confused here. Can you use -- when there's a tree-ish on > the line? Yes. All of these are valid commands: git checkout git.c git checkout HEAD git.c git checkout -- git.c git checkout HEAD -- git.c -- Mikael Magnusson