summaryrefslogtreecommitdiff
path: root/t/t5515/refs.master_config-explicit
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2011-06-05 17:24:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-06-05 18:10:50 -0700
commit08303c3636ef750bfafd1c47f363120cb439b367 (patch)
tree4f6f843c4e7381b2c066d7f837ae3a406ca0fffd /t/t5515/refs.master_config-explicit
parentSync with 1.7.5.4 (diff)
downloadtgif-08303c3636ef750bfafd1c47f363120cb439b367.tar.xz
grep: fix coloring of hunk marks between files
Commit 431d6e7b (grep: enable threading for context line printing) split the printing of the "--\n" mark between results from different files out into two places: show_line() in grep.c for the non-threaded case and work_done() in builtin/grep.c for the threaded case. Commit 55f638bd (grep: Colorize filename, line number, and separator) updated the former, but not the latter, so the separators between files are not colored if threads are used. This patch merges the two. In the threaded case, hunk marks are now printed by show_line() for every file, including the first one, and the very first mark is simply skipped in work_done(). This ensures that the output is properly colored and works just as well. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.master_config-explicit')
0 files changed, 0 insertions, 0 deletions