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

Function invalidate_one_directory

dir.c:3959–3967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3957}
3958
3959static void invalidate_one_directory(struct untracked_cache *uc,
3960 struct untracked_cache_dir *ucd)
3961{
3962 uc->dir_invalidated++;
3963 ucd->valid = 0;
3964 for (size_t i = 0; i < ucd->untracked_nr; i++)
3965 free(ucd->untracked[i]);
3966 ucd->untracked_nr = 0;
3967}
3968
3969/*
3970 * Normally when an entry is added or removed from a directory,

Callers 1

invalidate_one_componentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected