From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28614 invoked from network); 23 Jan 2008 16:48:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jan 2008 16:48:47 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 44010 invoked from network); 23 Jan 2008 16:48:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jan 2008 16:48:43 -0000 Received: (qmail 1898 invoked by alias); 23 Jan 2008 16:48:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24453 Received: (qmail 1877 invoked from network); 23 Jan 2008 16:48:40 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 23 Jan 2008 16:48:40 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id DBAB78058F58 for ; Wed, 23 Jan 2008 17:48:36 +0100 (CET) Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Wed, 23 Jan 2008 17:48:36 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 129AF5C1A0; Wed, 23 Jan 2008 11:48:34 -0500 (EST) Date: Wed, 23 Jan 2008 11:48:35 -0500 From: Clint Adams To: Mikael Magnusson Cc: zsh-workers@sunsite.dk Subject: Re: git completion horribly slow in kernel tree Message-ID: <20080123164835.GA32341@scowler.net> Mail-Followup-To: Mikael Magnusson , zsh-workers@sunsite.dk References: <237967ef0801141339p73414915xc411253211ed7467@mail.gmail.com> <20080122011932.GB16813@scowler.net> <237967ef0801211740s1ee07850vc25984a7af262cac@mail.gmail.com> <20080122162222.GA503@scowler.net> <20080122171249.GA2361@scowler.net> <237967ef0801230320n7fbd3582xf8a149e10f83e708@mail.gmail.com> <20080123132925.GA26303@scowler.net> <237967ef0801230830t55434367p31c78b56df461454@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <237967ef0801230830t55434367p31c78b56df461454@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Jan 23, 2008 at 05:30:05PM +0100, Mikael Magnusson wrote: > Hm, I don't really know... git ls-tree seems to not want to output .., > if you specify --full-name, it does show the dir you specify, but > relative to the root of the project. So if you're in proj/dir1/dir2 > and git ls-tree --full-name --name-only HEAD .., you will get files > shown as dir1/file1. I guess it's possible to use that output, but > maybe it's easier to just manually cd to the proj/ dir first :). I > just looked at the bash completer (which is very confusing code), and > it seems to use something like > git --git-dir=$(git rev-parse --git-dir) ls-tree $ref:prefix > which lists the file as file1 instead of dir1/file1. (no idea why it > doesn't use --name-only). I just looked and git-add completion is using ls-files, which can't handle relative paths either.