* 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
| 2294 | * o->internal.result.cache_tree as well. |
| 2295 | */ |
| 2296 | static 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 |
no test coverage detected