diff options
| author | Jeff Hostetler <jeffhostetler@github.com> | 2024-02-26 21:39:20 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-02-26 15:34:03 -0800 |
| commit | a52482036cde8d2cd779039a70162fda9bd1c29a (patch) | |
| tree | a03af7ff1a7e82720b034286b0eb365ffa443596 /builtin/commit.c | |
| parent | fsmonitor: move untracked-cache invalidation into helper functions (diff) | |
| download | git-a52482036cde8d2cd779039a70162fda9bd1c29a.tar.gz git-a52482036cde8d2cd779039a70162fda9bd1c29a.zip | |
fsmonitor: return invalidated cache-entry count on directory event
Teach the refresh callback helper function for directory FSEvents to
return the number of cache-entries that were invalidated in response
to a directory event.
This will be used in a later commit to help determine if the observed
pathname in the FSEvent was a (possibly) case-incorrect directory
prefix (on a case-insensitive filesystem) of one or more actual
cache-entries.
If there exists at least one case-insensitive prefix match, then we
can assume that the directory is a (case-incorrect) prefix of at least
one tracked item rather than a completely unknown/untracked file or
directory.
Signed-off-by: Jeff Hostetler <jeffhostetler@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
