summaryrefslogtreecommitdiffstats
path: root/githooks.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-02-14 15:35:16 -0800
committerJunio C Hamano <gitster@pobox.com>2020-02-14 15:35:16 -0800
commitfc6646b8789d26d106b8074443f0d4bf0d45ec95 (patch)
tree6720c95d34e1a9b332a0088e3f78bcfa6660668b /githooks.html
parentb7e497f81b86f5ab135de8db416ff0b2d7796546 (diff)
downloadgit-htmldocs-fc6646b8789d26d106b8074443f0d4bf0d45ec95.tar.gz
Autogenerated HTML docs for v2.25.0-389-gbfdd6
Diffstat (limited to 'githooks.html')
-rw-r--r--githooks.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/githooks.html b/githooks.html
index 0584284ed..d09eb88c8 100644
--- a/githooks.html
+++ b/githooks.html
@@ -1172,9 +1172,14 @@ e-mails.</p></div>
<div class="sect2">
<h3 id="_fsmonitor_watchman">fsmonitor-watchman</h3>
<div class="paragraph"><p>This hook is invoked when the configuration option <code>core.fsmonitor</code> is
-set to <code>.git/hooks/fsmonitor-watchman</code>. It takes two arguments, a version
-(currently 1) and the time in elapsed nanoseconds since midnight,
-January 1, 1970.</p></div>
+set to <code>.git/hooks/fsmonitor-watchman</code> or <code>.git/hooks/fsmonitor-watchmanv2</code>
+depending on the version of the hook to use.</p></div>
+<div class="paragraph"><p>Version 1 takes two arguments, a version (1) and the time in elapsed
+nanoseconds since midnight, January 1, 1970.</p></div>
+<div class="paragraph"><p>Version 2 takes two arguments, a version (2) and a token that is used
+for identifying changes since the token. For watchman this would be
+a clock id. This version must output to stdout the new token followed
+by a NUL before the list of files.</p></div>
<div class="paragraph"><p>The hook should output to stdout the list of all files in the working
directory that may have changed since the requested time. The logic
should be inclusive so that it does not miss any potential changes.
@@ -1225,7 +1230,7 @@ running passing "1", "1" should not be possible.</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2019-09-29 22:04:22 PDT
+ 2020-02-14 15:32:19 PST
</div>
</div>
</body>