summaryrefslogtreecommitdiff
path: root/Assistant/Threads/Watcher.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-03-05 17:44:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-03-05 17:44:14 -0400
commit1db1469905cd08da2b4a2f5e310437ff5233f286 (patch)
treedce09d0ef76f95819bfb8f3d2640c4121475c5fe /Assistant/Threads/Watcher.hs
parentf86866c6130ad7b8eb1433c976e4c94b1f17e30d (diff)
annex.startupscan can be set to false to disable the assistant's startup scan.
Diffstat (limited to 'Assistant/Threads/Watcher.hs')
-rw-r--r--Assistant/Threads/Watcher.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assistant/Threads/Watcher.hs b/Assistant/Threads/Watcher.hs
index 611eca1a7..8a8e8faf0 100644
--- a/Assistant/Threads/Watcher.hs
+++ b/Assistant/Threads/Watcher.hs
@@ -102,7 +102,8 @@ runWatcher = do
, delDirHook = deldirhook
, errHook = errhook
}
- handle <- liftIO $ watchDir "." ignored hooks startup
+ scanevents <- liftAnnex $ annexStartupScan <$> Annex.getGitConfig
+ handle <- liftIO $ watchDir "." ignored scanevents hooks startup
debug [ "watching", "."]
{- Let the DirWatcher thread run until signalled to pause it,