Re: [RFC PATCH] grep: provide sane default to grep_source struct
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 16, 2019, 03:13 UTC
- Message-ID
- <20190516031338.GA156553@google.com>
- In-Reply-To
- <xmqqy3373xnj.fsf@gitster-ct.c.googlers.com>
Junio C Hamano wrote:
Show 5 quoted lines
> Currently the only use of the function is to see if the log message > matches with the given pattern (yes/no), but it is conceivable that > new callers may want to prepare in-core data and use it to see if > that matches the pattern, or even to _show_ the lines that match the > pattern (possibly with its own .output callback).
Oh, good point about .output. That answers my question about getting the output in the right place.
[...]
>> Thanks in advance for everyone's thoughts. >> Emily
Thanks, both.
Jonathan