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

Function read_apply_cache

apply.c:4184–4191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4182}
4183
4184static int read_apply_cache(struct apply_state *state)
4185{
4186 if (state->index_file)
4187 return read_index_from(state->repo->index, state->index_file,
4188 repo_get_git_dir(the_repository));
4189 else
4190 return repo_read_index(state->repo);
4191}
4192
4193/* This function tries to read the object name from the current index */
4194static int get_current_oid(struct apply_state *state, const char *path,

Callers 2

get_current_oidFunction · 0.85
apply_patchFunction · 0.85

Calls 3

read_index_fromFunction · 0.85
repo_get_git_dirFunction · 0.85
repo_read_indexFunction · 0.85

Tested by

no test coverage detected