diff options
author | Kevin Willford <Kevin.Willford@microsoft.com> | 2020-01-23 15:26:47 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-23 15:10:23 -0800 |
commit | dfaed028620c2dca08d24583c7fc8b0aef9b6d0f (patch) | |
tree | 72d6ef707c44a6bc1b25e102e7986d380c057e6c /Documentation/config/core.txt | |
parent | fsmonitor: add fsmonitor hook scripts for version 2 (diff) | |
download | tgif-dfaed028620c2dca08d24583c7fc8b0aef9b6d0f.tar.xz |
fsmonitor: update documentation for hook version and watchman hooks
A new config value for core.fsmonitorHookVersion was added to be able
to force the version of the fsmonitor hook. Possible values are 1 or 2.
When this is not set the code will use a value of -1 and attempt to use
version 2 of the hook first and if that fails will attempt version 1.
Signed-off-by: Kevin Willford <Kevin.Willford@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/core.txt')
-rw-r--r-- | Documentation/config/core.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/config/core.txt b/Documentation/config/core.txt index 9e440b160d..74619a9c03 100644 --- a/Documentation/config/core.txt +++ b/Documentation/config/core.txt @@ -68,6 +68,17 @@ core.fsmonitor:: avoiding unnecessary processing of files that have not changed. See the "fsmonitor-watchman" section of linkgit:githooks[5]. +core.fsmonitorHookVersion:: + Sets the version of hook that is to be used when calling fsmonitor. + There are currently versions 1 and 2. When this is not set, + version 2 will be tried first and if it fails then version 1 + will be tried. Version 1 uses a timestamp as input to determine + which files have changes since that time but some monitors + like watchman have race conditions when used with a timestamp. + Version 2 uses an opaque string so that the monitor can return + something that can be used to determine what files have changed + without race conditions. + core.trustctime:: If false, the ctime differences between the index and the working tree are ignored; useful when the inode change time |