}
/* remember to discard_cache() before reading a different cache! */
-static int do_read_index(struct index_state *istate, const char *path,
- int must_exist)
+int do_read_index(struct index_state *istate, const char *path, int must_exist)
{
int fd, i;
struct stat st;