diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-29 19:58:49 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-29 19:58:49 -0400 |
commit | 4fb26f4e60f2df282fc972e4b8506ccd306de789 (patch) | |
tree | ba95769fbc59a296364076fd2e649f3ebc0438af /IkiWiki/Plugin/cvs.pm | |
parent | 7d48813166c637e5bb2e11ef690fc7521716bd31 (diff) | |
download | ikiwiki-4fb26f4e60f2df282fc972e4b8506ccd306de789.tar ikiwiki-4fb26f4e60f2df282fc972e4b8506ccd306de789.tar.gz |
Add a second parameter to the rcs_diff hook, and avoid bloating memory reading in enormous commits.
Diffstat (limited to 'IkiWiki/Plugin/cvs.pm')
-rw-r--r-- | IkiWiki/Plugin/cvs.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm index 4972efb58..71566d212 100644 --- a/IkiWiki/Plugin/cvs.pm +++ b/IkiWiki/Plugin/cvs.pm @@ -436,8 +436,9 @@ sub rcs_recentchanges ($) { return @ret; } -sub rcs_diff ($) { +sub rcs_diff ($;$) { my $rev=IkiWiki::possibly_foolish_untaint(int(shift)); + my $maxlines=shift; local $CWD = $config{srcdir}; |