author | Jakub Narebski <jnareb@gmail.com> | |
Thu, 17 May 2007 20:54:28 +0000 (22:54 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 18 May 2007 00:35:33 +0000 (17:35 -0700) | ||
commit | 5f85505265601823cc228fdc94d67d3b0ba582e4 | |
tree | 9d672a2d8fe4359fc5da7c921b7851e4e6b9d727 | tree | snapshot |
parent | e986e26a86616054f96373280e8f9cc89d7ea8ca | commit | diff |
gitweb: Fix error in git_patchset_body for deletion in merge commit
Checking if $diffinfo->{'status'} is equal 'D' is no longer the way to
check if the file was deleted in result. For merge commits
$diffinfo->{'status'} is reference to array of statuses for each
parent. Use the fact that $diffinfo->{'to_id'} is all zeros as sign
that file was deleted in result.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Checking if $diffinfo->{'status'} is equal 'D' is no longer the way to
check if the file was deleted in result. For merge commits
$diffinfo->{'status'} is reference to array of statuses for each
parent. Use the fact that $diffinfo->{'to_id'} is all zeros as sign
that file was deleted in result.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |