@matheusbsbs / matheus-bagliano / commits / 73c9083f52
Fork 0

gitweb: Remove workaround for git-diff bug fixed in f82cd3c

Remove workaround in git_blobdiff for error in git-diff (showing reversed diff for diff of blobs), corrected in commit f82cd3c Fix "git diff blob1 blob2" showing the diff in reverse. which is post 1.4.2-rc2 commit. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 26, 2006 at 12:33 UTC 73c9083f52ac918b530c51887bbf5fd0a1119b4c
1 file changed +1 -2
gitweb/gitweb.perl
+1 -2
@@ -2834,8 +2834,7 @@ sub git_blobdiff {
2834 }
2835
2836 # open patch output
2837 - #open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
2838 - open $fd, "-|", $GIT, "diff", '-p', $hash, $hash_parent
2837 + open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
2838 or die_error(undef, "Open git-diff failed");
2839 } else {
2840 die_error('404 Not Found', "Missing one of the blob diff parameters")