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

Function get_cache_tree_oid

sequencer.c:815–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815static struct object_id *get_cache_tree_oid(struct index_state *istate)
816{
817 if (!cache_tree_fully_valid(istate->cache_tree))
818 if (cache_tree_update(istate, 0)) {
819 error(_("unable to update cache tree"));
820 return NULL;
821 }
822
823 return &istate->cache_tree->oid;
824}
825
826static int is_index_unchanged(struct repository *r)
827{

Callers 1

is_index_unchangedFunction · 0.85

Calls 3

cache_tree_fully_validFunction · 0.85
cache_tree_updateFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected