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

Function freshen_shared_index

read-cache.c:2342–2346  ·  view source on GitHub ↗

* Signal that the shared index is used by updating its mtime. * * This way, shared index can be removed if they have not been used * for some time. */

Source from the content-addressed store, hash-verified

2340 * for some time.
2341 */
2342static void freshen_shared_index(const char *shared_index, int warn)
2343{
2344 if (!check_and_freshen_file(shared_index, 1) && warn)
2345 warning(_("could not freshen shared index '%s'"), shared_index);
2346}
2347
2348int read_index_from(struct index_state *istate, const char *path,
2349 const char *gitdir)

Callers 2

read_index_fromFunction · 0.85
write_locked_indexFunction · 0.85

Calls 2

check_and_freshen_fileFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected