Re: ls-files
- From
James Cloos <cloos@jhcloos.com>
- Date
- Oct 9, 2008, 22:52 UTC
- Message-ID
- <m3od1t2xfv.fsf@lugabout.jhcloos.org>
- In-Reply-To
- <20081009214118.GZ8203@spearce.org>
>>>>> "Shawn" == Shawn O Pearce <spearce@spearce.org> writes:
>> [ls-files] is vastly more efficient than find(1) or a --recursive >> call to grep(1).
Shawn> How about using "git grep" then? No need for ls-files...
I often filter the list of files before passing them to xargs, so git grep helps for some use cases, but not all.
Also, (at least as of 1.6.0.2.307.gc427), git grep does not support -P (Perl compatible regexps) or --color.
-JimC
-- James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6