Re: git locate
Bruce Stephens <bruce.stephens@isode.com> writes:
Show 13 quoted lines
> John Tapsell <johnflux@gmail.com> writes:
>
> [...]
>
>> Actually could someone help me with this.. the trouble is that this
>> returns paths relative to the root.
>>
>> Can I get it to find all the files, but relative to where I am now?
>
> 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*"' -
There's a patch pending to do more or less the same thing:
http://thread.gmane.org/gmane.comp.version-control.git/146360/focus=146450
Read Junio's reply there:
http://thread.gmane.org/gmane.comp.version-control.git/146360/focus=146450
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/