| 4182 | } |
| 4183 | |
| 4184 | static 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 */ |
| 4194 | static int get_current_oid(struct apply_state *state, const char *path, |
no test coverage detected