diff-parseopt: convert --[src|dst]-prefix
[gitweb.git] / preload-index.c
index ddca1c216e46c03e2ff01a29ac0dfb93fb20958d..c7dc3f2b9f62a762efd7f590d6e8959fc1707479 100644 (file)
@@ -90,9 +90,9 @@ static void *preload_thread(void *_data)
        return NULL;
 }
 
-static void preload_index(struct index_state *index,
-                         const struct pathspec *pathspec,
-                         unsigned int refresh_flags)
+void preload_index(struct index_state *index,
+                  const struct pathspec *pathspec,
+                  unsigned int refresh_flags)
 {
        int threads, i, work, offset;
        struct thread_data data[MAX_PARALLEL];