]> git.ipfire.org Git - thirdparty/git.git/commit - fsmonitor.c
fsmonitor: return invalidated cache-entry count on non-directory event
authorJeff Hostetler <jeffhostetler@github.com>
Mon, 26 Feb 2024 21:39:22 +0000 (21:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Mar 2024 17:10:00 +0000 (09:10 -0800)
commit9e34e562805986b1ed0d1518a5822b9ec495960b
tree84a23a2b33f8f1937768f6a2d422d8e0db0f7418
parent558d146d13e2632aa9cd580cbfb81fbf635c3566
fsmonitor: return invalidated cache-entry count on non-directory event

Teach the refresh callback helper function for unqualified FSEvents
(pathnames without a trailing slash) to return the number of
cache-entries that were invalided in response to the event.

This will be used in a later commit to help determine if the observed
pathname was (possibly) case-incorrect when (on a case-insensitive
file system).

Signed-off-by: Jeff Hostetler <jeffhostetler@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsmonitor.c