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

Function update_ce_after_write

entry.c:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void update_ce_after_write(const struct checkout *state, struct cache_entry *ce,
271 struct stat *st)
272{
273 if (state->refresh_cache) {
274 assert(state->istate);
275 fill_stat_cache_info(state->istate, ce, st);
276 ce->ce_flags |= CE_UPDATE_IN_BASE;
277 mark_fsmonitor_invalid(state->istate, ce);
278 state->istate->cache_changed |= CE_ENTRY_CHANGED;
279 }
280}
281
282/* Note: ca is used (and required) iff the entry refers to a regular file. */
283static int write_entry(struct cache_entry *ce, char *path, struct conv_attrs *ca,

Callers 2

write_entryFunction · 0.85
handle_resultsFunction · 0.85

Calls 2

fill_stat_cache_infoFunction · 0.85
mark_fsmonitor_invalidFunction · 0.85

Tested by

no test coverage detected