]> git.ipfire.org Git - thirdparty/git.git/commit
gitweb: Show combined diff for merge commits in 'commitdiff' view
authorJakub Narebski <jnareb@gmail.com>
Sun, 6 May 2007 23:10:07 +0000 (01:10 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 8 May 2007 01:20:19 +0000 (18:20 -0700)
commitfb1dde4a908ddcfaa884f67734a60dc6bd639b59
tree53f34f91fbd3cfcbf7fa34166ae494af1e58cc82
parent493e01db51ae003255a27dbcc81953fbfdab958a
gitweb: Show combined diff for merge commits in 'commitdiff' view

When 'commitdiff' action is requested without 'hp' (hash parent)
parameter, and commit given by 'h' (hash) parameter is merge commit,
show merge as combined diff.

Earlier for merge commits without 'hp' parameter diff to first parent
was shown.

Note that in compact combined (--cc) format 'uninteresting' hunks
omission mechanism can make that there is no patch corresponding to
line in raw format (difftree) output. That is why (at least for now)
we use --combined and not --cc format for showing commitdiff for merge
commits.

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