Commit f4a8102
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 <michal.kiedrowicz@gmail.com>
Acked-by: Jakub Narębski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 44185f9 commit f4a8102
1 file changed
+18
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2430 | 2430 | | |
2431 | 2431 | | |
2432 | 2432 | | |
2433 | | - | |
2434 | | - | |
2435 | | - | |
2436 | | - | |
2437 | | - | |
2438 | | - | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
2439 | 2436 | | |
2440 | 2437 | | |
2441 | 2438 | | |
2442 | 2439 | | |
2443 | 2440 | | |
2444 | 2441 | | |
2445 | | - | |
2446 | | - | |
2447 | 2442 | | |
2448 | 2443 | | |
2449 | | - | |
2450 | | - | |
| 2444 | + | |
| 2445 | + | |
2451 | 2446 | | |
2452 | | - | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
2453 | 2453 | | |
2454 | 2454 | | |
2455 | 2455 | | |
| |||
5068 | 5068 | | |
5069 | 5069 | | |
5070 | 5070 | | |
5071 | | - | |
| 5071 | + | |
5072 | 5072 | | |
5073 | 5073 | | |
5074 | 5074 | | |
| |||
5090 | 5090 | | |
5091 | 5091 | | |
5092 | 5092 | | |
| 5093 | + | |
| 5094 | + | |
5093 | 5095 | | |
5094 | 5096 | | |
5095 | 5097 | | |
| |||
5243 | 5245 | | |
5244 | 5246 | | |
5245 | 5247 | | |
5246 | | - | |
5247 | | - | |
5248 | | - | |
5249 | | - | |
| 5248 | + | |
5250 | 5249 | | |
5251 | 5250 | | |
5252 | | - | |
| 5251 | + | |
5253 | 5252 | | |
5254 | 5253 | | |
5255 | 5254 | | |
5256 | | - | |
| 5255 | + | |
5257 | 5256 | | |
5258 | 5257 | | |
5259 | 5258 | | |
5260 | 5259 | | |
5261 | | - | |
| 5260 | + | |
5262 | 5261 | | |
5263 | 5262 | | |
5264 | 5263 | | |
| |||
0 commit comments