Code

gitweb: bugfix: git_commit and git_commitdiff parents
authorLuben Tuikov <ltuikov@yahoo.com>
Fri, 4 Aug 2006 22:11:47 +0000 (15:11 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 8 Aug 2006 01:15:29 +0000 (18:15 -0700)
commitd636ad9743783c728469a9b644c23c0415fe1a7b
tree03992982e2d3745c2b70331fc3419d1e15ad7bb8
parentf1efc38bf2856f875b878177c0f0a98d9eb3bb4e
gitweb: bugfix: git_commit and git_commitdiff parents

In git_commit() the hash base of $from_id is $parent, not
$hash:
 - If status is "D", then action blob for $from_id wants
   $parent, not $hash.  History needs $parent too.
 - If status is "R", then action blob for $from_id wants
   $parent, not $hash.

Similarly in git_commitdiff() the hash base of $from_id is
$hash_parent, not $hash.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl