]> git.ipfire.org Git - thirdparty/git.git/blobdiff - preload-index.c
Merge branch 'bp/add-diff-files-optim'
[thirdparty/git.git] / preload-index.c
index 9e7152ab14d9359d0a48da8b25cd58253a13fc0c..222792ccbc39b6166a75c702525c396b77c2299e 100644 (file)
@@ -9,7 +9,7 @@
 #include "progress.h"
 
 #ifdef NO_PTHREADS
-static void preload_index(struct index_state *index,
+void preload_index(struct index_state *index,
                          const struct pathspec *pathspec,
                          unsigned int refresh_flags)
 {
@@ -100,9 +100,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];