hs-watchman-0.0.1.0: Client library for Facebook's Watchman tool
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Directory.Watchman.Subscribe

Synopsis

Documentation

since :: Clockspec -> SubscribeParams -> SubscribeParams Source #

The subscribe command object allows the client to specify a since parameter; if present in the command, the initial set of subscription results will only include files that changed since the specified clockspec, equivalent to using the query command with the since generator.

https://facebook.github.io/watchman/docs/cmd/subscribe.html

deferVcs :: Bool -> SubscribeParams -> SubscribeParams Source #

Starting in watchman version 3.2, after the notification stream is complete, if the root appears to be a version control directory, subscription notifications will be held until an outstanding version control operation is complete (at the time of writing, this is based on the presence of either .hg/wlock or .git/index.lock). This behavior matches triggers and helps to avoid performing transient work in response to files changing, for example, during a rebase operation.

In some circumstances it is desirable for a client to observe the creation of the control files at the start of a version control operation. You may specify that you want this behavior by using 'deferVcs False'