diff options
author | Jeff Hostetler <jeffhostetler@github.com> | 2024-02-26 21:39:18 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-02-26 15:34:02 -0800 |
commit | 48f4cd7155a117b964e446f5c954d1046f2038c0 (patch) | |
tree | a9522494899fed791cd54b310fc62a9300483195 /builtin/commit.c | |
parent | 3e4ffda6394082bcb7413b79cdc26fc4f8a52025 (diff) |
fsmonitor: refactor untracked-cache invalidation
Update fsmonitor_refresh_callback() to use the new
untracked_cache_invalidate_trimmed_path() to invalidate
the cache using the observed pathname without needing to
modify the caller's buffer.
Previously, we modified the caller's buffer when the observed pathname
contained a trailing slash (and did not restore it). This wasn't a
problem for the single use-case caller, but felt dirty nontheless. In
a later commit we will want to invalidate case-corrected versions of
the pathname (using possibly borrowed pathnames from the name-hash or
dir-name-hash) and we may not want to keep the tradition of altering
the passed-in pathname.
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