X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/03e87d88f19d9bbbcceee985a4e04627f641b84f0762347dbe2c1b337db7b839..82f3d8703e0792b57342ea8c08a499c6e5ea03f1902c766dbd39243646c54bcb:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 47dc9e1..b40fd35 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2399,6 +2399,7 @@ sub git_patchset_body { my ($fd, $difftree, $hash, $hash_parent) = @_; my $patch_idx = 0; + my $patch_number = 0; my $patch_line; my $diffinfo; my (%from, %to); @@ -2420,6 +2421,7 @@ sub git_patchset_body { # git diff header #assert($patch_line =~ m/^diff /) if DEBUG; #assert($patch_line !~ m!$/$!) if DEBUG; # is chomp-ed + $patch_number++; push @diff_header, $patch_line; # extended diff header @@ -2582,6 +2584,7 @@ sub git_patchset_body { } continue { print "\n"; # class="patch" } + print "