gitweb: Parse two-line from-file/to-file diff header in git_patchset_body
commite4e4f825455f2903e4d015e51c09ec0527a0be86
authorJakub Narebski <jnareb@gmail.com>
Fri, 25 Aug 2006 19:04:13 +0000 (25 21:04 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 26 Aug 2006 02:41:09 +0000 (25 19:41 -0700)
tree10c012413187dcdc111fe703346015432fe42ce7
parentfe87585e53860f1c89a088e91c08dd89b6702a74
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.css
gitweb/gitweb.perl