summaryrefslogtreecommitdiff
path: root/Command/Watch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-12 14:34:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-12 14:34:09 -0400
commit535d9e49984daa7669f8bbc6e83ef2f7989c21c9 (patch)
tree0dbb10628a5f6adb7f2ef3085ab22cf9e0892c42 /Command/Watch.hs
parentd3b9b32f2193520242fecf973fd1d3c1f2254003 (diff)
add a flag indicating if an event was synthesized during initial dir scan
Diffstat (limited to 'Command/Watch.hs')
-rw-r--r--Command/Watch.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Command/Watch.hs b/Command/Watch.hs
index 1c4f61a55..5564df7bc 100644
--- a/Command/Watch.hs
+++ b/Command/Watch.hs
@@ -18,7 +18,10 @@
- Thread 3: inotify internal
- Used by haskell inotify library to ensure inotify event buffer is
- kept drained.
- - Thread 4: committer
+ - Thread 4: inotify initial scan
+ - A MVar lock is used to prevent other inotify handlers from running
+ - until this is complete.
+ - Thread 5: committer
- Waits for changes to occur, and runs the git queue to update its
- index, then commits.
-