aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-05 14:08:46 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-05 14:33:23 -0400
commit666a9613a12e3b3d36cdd1e818c44f1890f05b0d (patch)
treea6647cb17401f3f49feb8e13044c939811ab055c /IkiWiki.pm
parent89b65695e778699742bcf93b0ab0304fd53e30ca (diff)
downloadikiwiki-666a9613a12e3b3d36cdd1e818c44f1890f05b0d.tar
ikiwiki-666a9613a12e3b3d36cdd1e818c44f1890f05b0d.tar.gz
implement links dependencies
Involved some code refactoring so that same code that detects link changes for backlinks updating can be used for link dependency checking. The nice thing is that link dep checking is thus comopletly free!
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 0bb0c1746..b895e12fc 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -31,6 +31,7 @@ our $installdir='/usr'; # INSTALLDIR_AUTOREPLACE done by Makefile, DNE
# Page dependency types.
our $DEPEND_CONTENT=1;
our $DEPEND_PRESENCE=2;
+our $DEPEND_LINKS=4;
# Optimisation.
use Memoize;
@@ -1788,6 +1789,8 @@ sub add_depends ($$;@) {
$deptype=$deptype & ~$DEPEND_CONTENT | $DEPEND_PRESENCE
if $params{presence} && $limited;
+ $deptype=$deptype & ~$DEPEND_CONTENT | $DEPEND_LINKS
+ if $params{links} && $limited;
}
if ($simple) {