aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-21 16:13:37 -0400
committerJoey Hess <joey@kitenet.net>2010-04-21 16:13:37 -0400
commitfd6fb4c5071d9317b4388a0db6b97037cc010477 (patch)
treec2b01d8f5ed3c78efdb680afe963db572be4cc56 /IkiWiki
parenta71b92ed5c5572a1384367f8a90e1fc489b3c660 (diff)
downloadikiwiki-fd6fb4c5071d9317b4388a0db6b97037cc010477.tar
ikiwiki-fd6fb4c5071d9317b4388a0db6b97037cc010477.tar.gz
commit autocreated tag pages
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/tag.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index d2a3d4dfd..c98dd80b2 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -79,11 +79,18 @@ sub gentag ($) {
my $tagfile = newpagefile($tagpage, $config{default_pageext});
add_autofile($tagfile, "tag", sub {
- debug(sprintf(gettext("creating tag page %s"), $tag));
+ my $message=sprintf(gettext("creating tag page %s"), $tag);
+ debug($message);
my $template=template("autotag.tmpl");
$template->param(tag => $tag);
writefile($tagfile, $config{srcdir}, $template->output);
+ if ($config{rcs}) {
+ IkiWiki::disable_commit_hook();
+ IkiWiki::rcs_add($tagfile);
+ IkiWiki::rcs_commit_staged($message, undef, undef);
+ IkiWiki::enable_commit_hook();
+ }
});
}
}