From: Eric Sunshine Date: Sat, 05 May 2018 07:30:51 GMT Subject: Re: [PATCH 1/2] grep.c: extract show_line_header() Message-ID: In-Reply-To: <9dc758e3517681691e0809d9e9bcca03fbdad1cc.1525492696.git.me@ttaylorr.com> On Sat, May 5, 2018 at 12:03 AM, Taylor Blau wrote: > Teach 'git-grep(1)' how to print a line header multiple times from > show_line() in preparation for it learning '--only-matching'. > > show_line_header() comprises of the code in show_line() executed in s/of// > order to produce a line header. It is a one-for-one extraction of the > existing implementation. > > For now, show_line_header() provides no benefit over the change before > this patch. The following patch will call conditionally call s/call conditionally call/conditionally call/ > show_line_header() multiple times per invocation to show_line(), which > is the desired benefit of this change. > > Signed-off-by: Taylor Blau