aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-06 14:39:10 -0400
committerJoey Hess <joey@kitenet.net>2010-10-06 14:39:10 -0400
commit237ea79d715fbba5c1be0b73fbe008b3221975fb (patch)
treefac4414563696c4296ac615430a977eeb2c9039e /IkiWiki/Plugin
parent9366c5efd38a4c1c7f5d4506982b9bda20eb9ada (diff)
downloadikiwiki-237ea79d715fbba5c1be0b73fbe008b3221975fb.tar
ikiwiki-237ea79d715fbba5c1be0b73fbe008b3221975fb.tar.gz
remove rcs_showpatch
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/git.pm9
-rw-r--r--IkiWiki/Plugin/recentchanges.pm2
2 files changed, 1 insertions, 10 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 5922494bc..3ccaa446a 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -29,7 +29,6 @@ sub import {
hook(type => "rcs", id => "rcs_receive", call => \&rcs_receive);
hook(type => "rcs", id => "rcs_preprevert", call => \&rcs_preprevert);
hook(type => "rcs", id => "rcs_revert", call => \&rcs_revert);
- hook(type => "rcs", id => "rcs_showpatch", call => \&rcs_showpatch);
}
sub checkconfig () {
@@ -865,12 +864,4 @@ sub rcs_revert (@) {
}
}
-sub rcs_showpatch (@) {
- # Show the patch with the given revision id.
- my %params = @_;
- my $rev = $params{rev};
-
- return join "\n", run_or_die('git', 'show', $rev);
-}
-
1
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index 7e71d4fc3..948bb1366 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -117,7 +117,7 @@ sub sessioncgi ($$) {
}
else {
$form->title(sprintf(gettext("confirm reversion of %s"), $rev));
- my $patch_contents = IkiWiki::rcs_showpatch(rev => $rev);
+ my $patch_contents = IkiWiki::rcs_diff($rev);
$form->tmpl_param(patch_contents => encode_entities($patch_contents));
$form->field(name => "rev", type => "hidden", value => $rev, force => 1);
IkiWiki::showform($form, $buttons, $session, $q);