]> Lady’s Gitweb - Gitweb/commit
gitweb: Push formatting diff lines to print_diff_chunk()
authorMichał Kiedrowicz <redacted>
Wed, 11 Apr 2012 21:18:42 +0000 (23:18 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit2ccb4d626f1a8d6c0e15e0c0253e100178d1fc7de65b383e9e090d2f20978bea
tree52773c70486c22554d512d9391439cc27fffed7de5e25edc4e8c5c0dbcece9cf
parent6703167c3bdcb07a98274a0e3a84de32d8ceec402af92073ad37cfc1126e82ed
gitweb: Push formatting diff lines to print_diff_chunk()

Now lines are formatted closer to place where we actually use HTML
formatted output.

This means that we put raw lines in the @chunk accumulator, rather than
formatted lines.  Because we still need to know class (type) of line
when accumulating data to post-process and print, process_diff_line()
subroutine was retired and replaced by diff_line_class() used in
git_patchset_body() and new restructured format_diff_line() used in
print_diff_chunk().

As a side effect, we have to pass \%from and \%to down to callstack.

This is a preparation patch for diff refinement highlightning. It's not
meant to change gitweb output.

[jn: wrote commit message]

Signed-off-by: Michał Kiedrowicz <redacted>
Acked-by: Jakub Narębski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.328078 seconds and 5 git commands to generate.