gitweb: Add combined diff support to git_patchset_body
authorJakub Narebski <jnareb@gmail.com>
Sun, 6 May 2007 23:10:05 +0000 (01:10 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 8 May 2007 01:20:19 +0000 (18:20 -0700)
commite72c0eaf9bbdb2a9467f3f026b39b1c1755c1105
treea746e973ed2ae06a42758ace063dab89876757b0
parented224deac9436215f8c0b098baa0aecfcff1c293
gitweb: Add combined diff support to git_patchset_body

Calling convention for combined diff similar to the one for
git_difftree_body subroutine: difftree info (first parameter) must be
result of calling git-diff-tree with -c/--cc option, and all parents
of a commit must be passed as last parameters. See also description in
  "gitweb: Add combined diff support to git_difftree_body"

This ability is not used yet.

Generating "src" file name for renames in combined diff was separated
into fill_from_file_info subroutine; git_difftree_body was modified to
use it. Currently git_difftree_body and git_patchset_body fills this
info separately.

The from-file line in two-line from-file/to-file header is not
hyperlinked: there can be more than one "from"/"src" file. This
differs from HTML output of ordinary (not combined) diff.

format_diff_line subroutine needs extra $from/$to parameters to format
combined diff patch line correctly.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl