MCPcopy Index your code
hub / github.com/git/git / mark_fsmonitor_invalid

Function mark_fsmonitor_invalid

fsmonitor.h:60–69  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

58 * corresponding directory
59 */
60static 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

Callers 6

update_ce_after_writeFunction · 0.85
apply_sparse_checkoutFunction · 0.85
replace_index_entryFunction · 0.85
chmod_index_entryFunction · 0.85
refresh_indexFunction · 0.85
mark_ce_flagsFunction · 0.85

Calls 2

fsm_settings__get_modeFunction · 0.85

Tested by

no test coverage detected