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

Function has_racy_timestamp

read-cache.c:2735–2746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2733}
2734
2735int has_racy_timestamp(struct index_state *istate)
2736{
2737 int entries = istate->cache_nr;
2738 int i;
2739
2740 for (i = 0; i < entries; i++) {
2741 struct cache_entry *ce = istate->cache[i];
2742 if (is_racy_timestamp(istate, ce))
2743 return 1;
2744 }
2745 return 0;
2746}
2747
2748void repo_update_index_if_able(struct repository *repo,
2749 struct lock_file *lockfile)

Callers 2

refreshFunction · 0.85

Calls 1

is_racy_timestampFunction · 0.85

Tested by

no test coverage detected