From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16480 invoked from network); 21 Aug 2008 05:05:35 -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 05:05:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 97857 invoked from network); 21 Aug 2008 05:05:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Aug 2008 05:05:12 -0000 Received: (qmail 28711 invoked by alias); 21 Aug 2008 05:05:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25498 Received: (qmail 28693 invoked from network); 21 Aug 2008 05:04:58 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Aug 2008 05:04:58 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 5C0A6801E2B4 for ; Thu, 21 Aug 2008 07:04:54 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 880EB104086; Thu, 21 Aug 2008 05:04:52 +0000 (UTC) Date: Thu, 21 Aug 2008 05:04:52 +0000 From: Clint Adams To: Mikael Magnusson Cc: zsh-workers@sunsite.dk Subject: Re: git checkout improvement Message-ID: <20080821050452.GA24497@scru.org> Mail-Followup-To: Mikael Magnusson , zsh-workers@sunsite.dk References: <20080821000948.GA20166@scru.org> <237967ef0808201720x594dae53x215b078420b1ccb6@mail.gmail.com> <20080821005259.GA21325@scru.org> <237967ef0808201918t4c21baefj456fb9be0605d430@mail.gmail.com> <237967ef0808201922g91dd092w5da31759495b74b7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <237967ef0808201922g91dd092w5da31759495b74b7@mail.gmail.com> 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 On Thu, Aug 21, 2008 at 04:22:08AM +0200, Mikael Magnusson wrote: > Another problem is you can do > git checkout git.c NEWS > but then we try to use git.c as a tree-ish which obviously doesn't work. > Probably we should check if words[1] (or whatever) is a valid tree-ish, > and if not, complete files from the index instead. Great, how do you validate a tree-ish?