diff options
author | Eric Wong <e@80x24.org> | 2017-01-11 04:12:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-11 04:13:20 +0000 |
commit | fe0f622aefb4f4316d9f6814f4badcda5528eedf (patch) | |
tree | e92d6a9ad985e54ca506de2bc2b3dd998f7e75c5 /lib | |
parent | 8797a0b79d643824d05d0bd1a2b6e400081b855d (diff) | |
download | public-inbox-fe0f622aefb4f4316d9f6814f4badcda5528eedf.tar.gz |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitDiffCommon.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/RepobrowseGitDiffCommon.pm b/lib/PublicInbox/RepobrowseGitDiffCommon.pm index ac38aa0a..ae0e6821 100644 --- a/lib/PublicInbox/RepobrowseGitDiffCommon.pm +++ b/lib/PublicInbox/RepobrowseGitDiffCommon.pm @@ -240,6 +240,8 @@ sub git_diff_sed_stat ($$) { $l =~ /\A(\S+)\t+(\S+)\t+(.*)/ or next; my ($add, $del, $fn) = ($1, $2, $3); if ($fn ne '') { # normal modification + # TODO: discard diffs if they are too big + # gigantic changes with many files may still OOM us my $anchor = to_attr(git_unquote($fn)); $req->{anchors}->{$anchor} = $fn; $l = utf8_html($fn); |