From 8f6cdf3ae07536fdf1a197297b91677a1345eebc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 22 May 2009 14:17:26 -0400 Subject: listdirectives: Avoid listing _comment directives and generally assume any directive starting with _ is likewise internal. --- IkiWiki/Plugin/listdirectives.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') 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); -- cgit v1.2.3