diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-05-22 14:17:26 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-05-22 14:17:26 -0400 |
commit | 8f6cdf3ae07536fdf1a197297b91677a1345eebc (patch) | |
tree | 19d31d177023df17d9a9927d1eb4e5c2e5968d3f /IkiWiki/Plugin | |
parent | 7825960d310977d1ae6fd9ab31d76b611c0f91e8 (diff) |
listdirectives: Avoid listing _comment directives and generally assume any directive starting with _ is likewise internal.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/listdirectives.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/listdirectives.pm b/IkiWiki/Plugin/listdirectives.pm index d2cebca34..bd73f1a04 100644 --- a/IkiWiki/Plugin/listdirectives.pm +++ b/IkiWiki/Plugin/listdirectives.pm @@ -45,7 +45,7 @@ sub checkconfig () { sub needsbuild (@) { my $needsbuild=shift; - @fulllist = sort keys %{$IkiWiki::hooks{preprocess}}; + @fulllist = grep { ! /^_/ } sort keys %{$IkiWiki::hooks{preprocess}}; @shortlist = grep { ! $IkiWiki::hooks{preprocess}{$_}{shortcut} } @fulllist; $pluginstring = join(' ', @shortlist) . " : " . join(' ', @fulllist); |