diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2010-03-15 17:21:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-15 15:26:35 -0700 |
commit | 431d6e7bc85f693fe49a04142a8ab4d2d72b0257 (patch) | |
tree | dbe24237e8e38fddb6c24f01f7ec1d3dc025b347 /t/t9151 | |
parent | Merge branch 'sd/format-patch-to' (diff) | |
download | tgif-431d6e7bc85f693fe49a04142a8ab4d2d72b0257.tar.xz |
grep: enable threading for context line printing
If context lines are to be printed, grep separates them with hunk marks
("--\n"). These marks are printed between matches from different files,
too. They are not printed before the first file, though.
Threading was disabled when context line printing was enabled because
avoiding to print the mark before the first line was an unsolved
synchronisation problem. This patch separates the code for printing
hunk marks for the threaded and the unthreaded case, allowing threading
to be turned on together with the common -ABC options.
->show_hunk_mark, which controls printing of hunk marks between files in
show_line(), is now set in grep_buffer_1(), but only if some results
have already been printed and threading is disabled. The threaded case
is handled in work_done().
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9151')
0 files changed, 0 insertions, 0 deletions