]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
fsmonitor: change last update timestamp on the index_state to opaque token
authorKevin Willford <Kevin.Willford@microsoft.com>
Tue, 7 Jan 2020 19:04:28 +0000 (19:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jan 2020 22:58:43 +0000 (14:58 -0800)
commit56c6910028a0468761b0cd9ee5c0946ce637b586
tree3bc5ae7f7340a5fc87e7492c54282ccd2efe0bb8
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
fsmonitor: change last update timestamp on the index_state to opaque token

Some file system monitors might not use or take a timestamp for processing
and in the case of watchman could have race conditions with using a
timestamp. Watchman uses something called a clockid that is used for race
free queries to it. The clockid for watchman is simply a string.

Change the fsmonitor_last_update from being a uint64_t to a char pointer
so that any arbitrary data can be stored in it and passed back to the
fsmonitor.

Signed-off-by: Kevin Willford <Kevin.Willford@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
fsmonitor.c
t/helper/test-dump-fsmonitor.c