Code

gitweb: Show combined diff for merge commits in 'commit' view
authorJakub Narebski <jnareb@gmail.com>
Sun, 6 May 2007 23:10:08 +0000 (01:10 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 8 May 2007 01:20:19 +0000 (18:20 -0700)
commit208ecb2e860364aeffb22eb1f644db077b1c5162
treece472a862db996b18a72fe6c69e300e8abf6bc0c
parentfb1dde4a908ddcfaa884f67734a60dc6bd639b59
gitweb: Show combined diff for merge commits in 'commit' view

When commit shown is a merge commit (has more than one parent),
display combined difftree output (result of git-diff-tree -c).
Earlier (since commit 549ab4a30703012ff3a12b5455d319216805a8db)
difftree output (against first parent) was not printed for merges.

Examples of non-trivial merges:
  5bac4a671907604b5fb4e24ff682d5b0e8431931 (includes rename)
  addafaf92eeb86033da91323d0d3ad7a496dae83 (five parents)
  95f97567c1887d77f3a46b42d8622c76414d964d (evil merge)

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