Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2456
void 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
clear_or_reinit_internal_opts
Function · 0.85
discard_split_index
Function · 0.85
clear_unpack_trees_porcelain
Function · 0.85
unpack_failed
Function · 0.85
unpack_trees
Function · 0.85
fake_working_tree_commit
Function · 0.85
try_merge_command
Function · 0.85
add_index_objects_to_pending
Function · 0.85
do_pick_commit
Function · 0.85
do_exec
Function · 0.85
do_merge
Function · 0.85
create_autostash_internal
Function · 0.85
Calls
2
release_index
Function · 0.85
index_state_init
Function · 0.85
Tested by
4
cmd__read_cache
Function · 0.68
dump_run
Function · 0.68
time_runs
Function · 0.68
analyze_run
Function · 0.68