]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: There can be empty patches (in git_patchset_body)
authorJakub Narebski <redacted>
Wed, 3 Jan 2007 19:47:25 +0000 (20:47 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
We now do not skip over empty patches in git_patchset_body
(where empty means that they consist only of git diff header,
and of extended diff header), so uncomment branch of code dealing
with empty patches (patches which do not have even two-line
from/to header)

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index c12a6ce6c180341cc709a7b13023f4272c32758549c2a5186fb452d8dba5bb0e..fe6c9fe0d298b35af5d1de83518a43e2c613ed8a38bc934877efdd9d07cbf11c 100755 (executable)
@@ -2528,7 +2528,7 @@ sub git_patchset_body {
                print "<div class=\"diff from_file\">$patch_line</div>\n";
 
                $patch_line = <$fd>;
-               #last PATCH unless $patch_line;
+               last PATCH unless $patch_line;
                chomp $patch_line;
 
                #assert($patch_line =~ m/^+++/) if DEBUG;
This page took 0.317025 seconds and 4 git commands to generate.