On Sat, May 5, 2018 at 12:03 AM, Taylor Blau <me@xxxxxxxxxxxx> 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 <me@xxxxxxxxxxxx>