]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix indentation
authorJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 20:33:36 +0000 (16:33 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 20:33:36 +0000 (16:33 -0400)
IkiWiki/Plugin/git.pm

index 33ec00d8ad140b1c06024a5432698ce6c3fe00c1..794afb74065ab919f942a88799a61db24eb1476d 100644 (file)
@@ -27,10 +27,9 @@ sub import {
        hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
        hook(type => "rcs", id => "rcs_getmtime", call => \&rcs_getmtime);
        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);
+       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 () {
@@ -867,11 +866,11 @@ sub rcs_revert (@) {
 }
 
 sub rcs_showpatch (@) {
-    # Show the patch with the given revision id.
-    my %params = @_;
-    my $rev = $params{rev};
+       # Show the patch with the given revision id.
+       my %params = @_;
+       my $rev = $params{rev};
 
-    return join "\n", run_or_die('git', 'show', $rev);
+       return join "\n", run_or_die('git', 'show', $rev);
 }
 
 1