MCPcopy Index your code
hub / github.com/git/git / should_validate_cache_entries

Function should_validate_cache_entries

read-cache.c:3529–3541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3527}
3528
3529int should_validate_cache_entries(void)
3530{
3531 static int validate_index_cache_entries = -1;
3532
3533 if (validate_index_cache_entries < 0) {
3534 if (getenv("GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES"))
3535 validate_index_cache_entries = 1;
3536 else
3537 validate_index_cache_entries = 0;
3538 }
3539
3540 return validate_index_cache_entries;
3541}
3542
3543#define EOIE_SIZE (4 + GIT_SHA1_RAWSZ) /* <4-byte offset> + <20-byte hash> */
3544#define EOIE_SIZE_WITH_HEADER (4 + 4 + EOIE_SIZE) /* <4-byte signature> + <4-byte length> + EOIE_SIZE */

Callers 4

release_indexFunction · 0.85
validate_cache_entriesFunction · 0.85
discard_cache_entryFunction · 0.85
checkout_worktreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected