* Clear the given cache entry's CE_FSMONITOR_VALID bit and invalidate * any corresponding untracked cache directory structures. This should * be called any time git creates or modifies a file that should * trigger an lstat() or invalidate the untracked cache for the * corresponding directory */
| 58 | * corresponding directory |
| 59 | */ |
| 60 | static inline void mark_fsmonitor_invalid(struct index_state *istate, struct cache_entry *ce) |
| 61 | { |
| 62 | enum fsmonitor_mode fsm_mode = fsm_settings__get_mode(istate->repo); |
| 63 | |
| 64 | if (fsm_mode > FSMONITOR_MODE_DISABLED) { |
| 65 | ce->ce_flags &= ~CE_FSMONITOR_VALID; |
| 66 | untracked_cache_invalidate_path(istate, ce->name, 1); |
| 67 | trace_printf_key(&trace_fsmonitor, "mark_fsmonitor_invalid '%s'", ce->name); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | #endif |
no test coverage detected