Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: ls-files · James Cloos <hidden> · 2016-06-15

Re: ls-files

From: James Cloos <hidden>
Date: 2016-06-15 22:45:28

quoted
quoted
quoted
quoted
"Shawn" == Shawn O Pearce [off-list ref] writes:
quoted
[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 [off-list ref]         OpenPGP: 1024D/ED7DAEA6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help