From: Clemens Buchacher Date: Thu, 03 Jun 2010 13:39:50 GMT Subject: Re: git locate Message-ID: <20100603133950.GA30826@localhost> In-Reply-To: <80y6ex3f8b.fsf@tiny.isode.net> On Wed, Jun 02, 2010 at 11:23:32AM +0100, Bruce Stephens wrote: > Something like this is probably part of the answer, which allows an > alias like this to work: > > locate = !cd $GIT_CWD && sh -c 'git ls-files "*$1*"' - > > That doesn't give you all the files (just those below where you are). Once relative path support for ls-files is done (patch pending) you can do git ls-files $(git rev-parse --show-cdup). Clemens