]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Remove workaround for git-diff bug fixed in f82cd3c
authorJakub Narebski <redacted>
Sat, 26 Aug 2006 10:33:17 +0000 (12:33 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 36fae5723f66816d6234a3b56ac66f2acf9594072f9d4867812904e9236580d6..b73af0e09c3b7261b4ad5e91cb5dabf429885a37f20eda1c4eb4580e4805e2d3 100755 (executable)
@@ -2834,8 +2834,7 @@ sub git_blobdiff {
                }
 
                # open patch output
-               #open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
-               open $fd, "-|", $GIT, "diff", '-p', $hash, $hash_parent
+               open $fd, "-|", $GIT, "diff", '-p', $hash_parent, $hash
                        or die_error(undef, "Open git-diff failed");
        } else  {
                die_error('404 Not Found', "Missing one of the blob diff parameters")
This page took 0.20415 seconds and 4 git commands to generate.