MCPcopy Create free account
hub / github.com/git/git / invalidate_ce_path

Function invalidate_ce_path

unpack-trees.c:2296–2303  ·  view source on GitHub ↗

* TODO: We should actually invalidate o->internal.result, not src_index [1]. * But since cache tree and untracked cache both are not copied to * o->internal.result until unpacking is complete, we invalidate them on * src_index instead with the assumption that they will be copied to * dst_index at the end. * * [1] src_index->cache_tree is also used in unpack_callback() so if * we invalidate

Source from the content-addressed store, hash-verified

2294 * o->internal.result.cache_tree as well.
2295 */
2296static void invalidate_ce_path(const struct cache_entry *ce,
2297 struct unpack_trees_options *o)
2298{
2299 if (!ce)
2300 return;
2301 cache_tree_invalidate_path(o->src_index, ce->name);
2302 untracked_cache_invalidate_path(o->src_index, ce->name, 1);
2303}
2304
2305/*
2306 * Check that checking out ce->sha1 in subdir ce->name is not

Callers 4

merged_entryFunction · 0.85
deleted_entryFunction · 0.85
keep_entryFunction · 0.85

Calls 2

Tested by

no test coverage detected