Re: git locate
- From
Clemens Buchacher <drizzd@aon.at>
- Date
- Jun 3, 2010, 13:39 UTC
- 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:
Show 6 quoted lines
> 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