summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorKevin Willford <Kevin.Willford@microsoft.com>2020-01-07 19:04:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-13 22:58:43 (GMT)
commit56c6910028a0468761b0cd9ee5c0946ce637b586 (patch)
tree3bc5ae7f7340a5fc87e7492c54282ccd2efe0bb8 /t/helper
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783 (diff)
downloadgit-56c6910028a0468761b0cd9ee5c0946ce637b586.zip
git-56c6910028a0468761b0cd9ee5c0946ce637b586.tar.gz
git-56c6910028a0468761b0cd9ee5c0946ce637b586.tar.bz2
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>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-dump-fsmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-dump-fsmonitor.c b/t/helper/test-dump-fsmonitor.c
index 2786f47..975f0ac 100644
--- a/t/helper/test-dump-fsmonitor.c
+++ b/t/helper/test-dump-fsmonitor.c
@@ -13,7 +13,7 @@ int cmd__dump_fsmonitor(int ac, const char **av)
printf("no fsmonitor\n");
return 0;
}
- printf("fsmonitor last update %"PRIuMAX"\n", (uintmax_t)istate->fsmonitor_last_update);
+ printf("fsmonitor last update %s\n", istate->fsmonitor_last_update);
for (i = 0; i < istate->cache_nr; i++)
printf((istate->cache[i]->ce_flags & CE_FSMONITOR_VALID) ? "+" : "-");