]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/git.pm
remove rcs_showpatch
[ikiwiki.git] / IkiWiki / Plugin / git.pm
index 794afb74065ab919f942a88799a61db24eb1476d..3ccaa446a344f2dee24a4d277c2b803b8a7ff888 100644 (file)
@@ -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 () {
@@ -741,7 +740,7 @@ sub git_find_root {
                }
        }
 
-       return $subdir;
+       return $git_root=$subdir;
 }
 
 }
@@ -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