-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Right now, we install the Watchman integration by copying the fsmonitor-watchman.sample hook in the .git/hooks directory to query-watchman. This relies on the Git repo being initialized by a version of Git including the latest hook.
We should instead use our own hook provided with Scalar, so this upgrades as new versions of the hook are available.
-
One approach would be to provide the hook contents as a text string in Scalar, then write it to the
query-watchmanhook (with appropriate execution permissions). -
Another that @kewillford mentioned is that we may want a native hook instead of a perl script. That would be an interesting inclusion, but should it build with Scalar or with Git? How do we access the latest hook to place it in the right spot?