Re: [PATCH] grep: do not do external grep on skip-worktree entries
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jan 11, 2010, 16:33 UTC
- Message-ID
- <alpine.LFD.2.00.1001110830070.13040@localhost.localdomain>
- In-Reply-To
- <7vtyusr4r7.fsf@alter.siamese.dyndns.org>
On Mon, 11 Jan 2010, Junio C Hamano wrote:
> > An ObviouslyRightThing fix is this two-liner. We shouldn't lookahead if > we want to do something more than just skipping when we see an unmatch for > the line we are currently looking at.
Ack. Works for me. And with that, I'd love for it to go in, and get rid of the external grep. Performance is now a non-issue (it goes both ways), and the internal grep doesn't have the bug with separators between multi-line greps.
And dropping the external one gets rid of all the issues with PATHs, crap 'grep' implementations, and removes actual code. Goodie.
Linus