-This assumes you know what `srcdir`, `repository` and so on mean, if you forgot (like me), see this reference: [[rcs/git/]].
+What would need to happen in ikiwiki would be to detect that `$srcdir` is running git-annex in direct mode and then do some magic. Here is a tentative incantation in shell:
+
+ if [ $(git config core.bare) == 'true' ] &&
+ [ $(git config annex.direct) == 'true' ]; then
+ git annex add --auto
+ git -c core.bare=false commit -m'testing git-annex with ikiwiki'
+ fi
+
+This probably needs to happen around line 571 of `git.pm` or, more likely, in a new `git-annex` plugin.