X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=preload-index.c;h=e73600ee7841a299e060369ca9eecf46d5a7fb0f;hb=31f5256c82a36edea3ea2f91e5171e3472878915;hp=c7dc3f2b9f62a762efd7f590d6e8959fc1707479;hpb=2ed3de439e2de9646e1501a46bc4fd80c977e611;p=thirdparty%2Fgit.git diff --git a/preload-index.c b/preload-index.c index c7dc3f2b9f..e73600ee78 100644 --- a/preload-index.c +++ b/preload-index.c @@ -8,6 +8,7 @@ #include "config.h" #include "progress.h" #include "thread-utils.h" +#include "repository.h" /* * Mostly randomly chosen maximum thread counts: we @@ -146,12 +147,12 @@ void preload_index(struct index_state *index, trace_performance_leave("preload index"); } -int read_index_preload(struct index_state *index, - const struct pathspec *pathspec, - unsigned int refresh_flags) +int repo_read_index_preload(struct repository *repo, + const struct pathspec *pathspec, + unsigned int refresh_flags) { - int retval = read_index(index); + int retval = repo_read_index(repo); - preload_index(index, pathspec, refresh_flags); + preload_index(repo->index, pathspec, refresh_flags); return retval; }