about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseGitCommit.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-12 00:23:33 +0000
committerEric Wong <e@80x24.org>2016-04-05 18:58:27 +0000
commit0063c0e01e80b966b681c4b88753c9cf053c05a7 (patch)
tree9be7120e0af8584c7ef016fc57f46f48364571c4 /lib/PublicInbox/RepobrowseGitCommit.pm
parent278706bf0ab1ce134e0f742791fa904692660ab8 (diff)
downloadpublic-inbox-0063c0e01e80b966b681c4b88753c9cf053c05a7.tar.gz
No point in wasting stack space for that.
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitCommit.pm')
-rw-r--r--lib/PublicInbox/RepobrowseGitCommit.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/RepobrowseGitCommit.pm b/lib/PublicInbox/RepobrowseGitCommit.pm
index 156e3e22..7d8a0843 100644
--- a/lib/PublicInbox/RepobrowseGitCommit.pm
+++ b/lib/PublicInbox/RepobrowseGitCommit.pm
@@ -90,7 +90,7 @@ sub git_commit_stream {
         chomp $l;
         $fh->write(utf8_html($l)."<a\nid=D>---</a>\n");
         my $diff = { anchors => {}, h => $h, p => \@p, rel => $rel };
-        git_show_diffstat($diff, $req, $h, $fh, $log);
+        git_show_diffstat($diff, $req, $fh, $log);
         my $help;
         $help = " This is a merge, showing combined diff:\n\n" if ($np > 1);
 
@@ -196,7 +196,7 @@ sub git_commit_404 {
 }
 
 sub git_show_diffstat {
-        my ($diff, $req, $h, $fh, $log) = @_;
+        my ($diff, $req, $fh, $log) = @_;
         local $/ = "\0\0";
         my $l = <$log>;
         chomp $l;
@@ -221,7 +221,7 @@ sub git_show_diffstat {
                 } else {
                         my $from = shift @stat;
                         my $to = shift @stat;
-                        $l = git_diffstat_rename($diff, $h, $from, $to);
+                        $l = git_diffstat_rename($diff, $from, $to);
                 }
                 ++$nr;
                 $fh->write(' '.$num."\t".$l."\n");
@@ -361,7 +361,7 @@ sub git_diff_cc_hunk {
 }
 
 sub git_diffstat_rename {
-        my ($diff, $h, $from, $to) = @_;
+        my ($diff, $from, $to) = @_;
         my $anchor = to_attr(git_unquote($to));
         $diff->{anchors}->{$anchor} = $to;
         my @from = split('/', $from);