projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a71b92e
)
commit autocreated tag pages
author
Joey Hess
<joey@kitenet.net>
Wed, 21 Apr 2010 20:13:37 +0000
(16:13 -0400)
committer
Joey Hess
<joey@kitenet.net>
Wed, 21 Apr 2010 20:13:37 +0000
(16:13 -0400)
IkiWiki/Plugin/tag.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/tag.pm
b/IkiWiki/Plugin/tag.pm
index d2a3d4dfdb5a3366262afd8c5a7159648a41cbc0..c98dd80b29620434087db459ff93a55dff7a5dee 100644
(file)
--- 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 {
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);
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();
+ }
});
}
}
});
}
}