aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-11-17 00:04:05 -0400
committerJoey Hess <joey@kitenet.net>2013-11-17 00:04:05 -0400
commit7dd110ba51c738e249ea974b71f85477c543e5bc (patch)
tree861e1990acf9bf9158f14650d037294c66d4ff20 /IkiWiki/Plugin
parent3cc260c775f1fd69c4d23b5a8a153553384db1a2 (diff)
downloadikiwiki-7dd110ba51c738e249ea974b71f85477c543e5bc.tar
ikiwiki-7dd110ba51c738e249ea974b71f85477c543e5bc.tar.gz
disable only_committed_changes when uncommitted files are created by plugins
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/autoindex.pm3
-rw-r--r--IkiWiki/Plugin/comments.pm3
-rw-r--r--IkiWiki/Plugin/tag.pm3
3 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm
index 78571b276..dede9eb05 100644
--- a/IkiWiki/Plugin/autoindex.pm
+++ b/IkiWiki/Plugin/autoindex.pm
@@ -33,6 +33,9 @@ sub checkconfig () {
if (! defined $config{autoindex_commit}) {
$config{autoindex_commit} = 1;
}
+ if (! $config{autoindex_commit}) {
+ $config{only_committed_changes}=0;
+ }
}
sub genindex ($) {
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 1ef79a27a..b1d8578ae 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -104,6 +104,9 @@ sub getsetup () {
sub checkconfig () {
$config{comments_commit} = 1
unless defined $config{comments_commit};
+ if (! $config{comments_commit}) {
+ $config{only_committed_changes}=0;
+ }
$config{comments_pagespec} = ''
unless defined $config{comments_pagespec};
$config{comments_closed_pagespec} = ''
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 605f41599..c07d0131e 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -58,6 +58,9 @@ sub checkconfig () {
if (! defined $config{tag_autocreate_commit}) {
$config{tag_autocreate_commit} = 1;
}
+ if (! $config{tag_autocreate_commit}) {
+ $config{only_committed_changes}=0;
+ }
}
sub taglink ($) {