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

Function discard_index

read-cache.c:2456–2460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454}
2455
2456void discard_index(struct index_state *istate)
2457{
2458 release_index(istate);
2459 index_state_init(istate, istate->repo);
2460}
2461
2462/*
2463 * Validate the cache entries of this index.

Callers 15

discard_split_indexFunction · 0.85
unpack_failedFunction · 0.85
unpack_treesFunction · 0.85
fake_working_tree_commitFunction · 0.85
try_merge_commandFunction · 0.85
do_pick_commitFunction · 0.85
do_execFunction · 0.85
do_mergeFunction · 0.85

Calls 2

release_indexFunction · 0.85
index_state_initFunction · 0.85

Tested by 4

cmd__read_cacheFunction · 0.68
dump_runFunction · 0.68
time_runsFunction · 0.68
analyze_runFunction · 0.68