Subject: Re: git locate

From: Clemens Buchacher <[email-masked]>
Date: Thu, 3 Jun 2010 15:39:50 +0200

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