]> Lady’s Gitweb - Gitweb/commit
gitweb: Parse two-line from-file/to-file diff header in git_patchset_body
authorJakub Narebski <redacted>
Fri, 25 Aug 2006 19:04:13 +0000 (21:04 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commita16a791159a5f7d3c0fd896514c12a575a9e26da9524664b6ffb649a54084a01
tree79d7282dd540be529627bd2a0d37c496cf515c6a6ea73cabb048761a26ca6ce1
parente52d03579ab2103c9cf8e441356f0ab73d01944aee8b079cebdc8f3cdb8ecd9d
gitweb: Parse two-line from-file/to-file diff header in git_patchset_body

Parse two-line from-file/to-file unified diff header in
git_patchset_body directly, instead of leaving pretty-printing to
format_diff_line function.  Hashes as from-file/to-file are replaced
by proper from-file and to-file names (from $diffinfo); in the future
we can put hyperlinks there.  This makes possible to do blobdiff with
only blobs hashes.

The lines in two-line unified diff header have now class "from_file"
and "to_file"; the style is chosen to match previous output (classes
"rem" and "add" because of '-' and '+' as first character of patch
line).

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.css
gitweb.perl
This page took 0.214384 seconds and 4 git commands to generate.