#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "pathspec.h"
#include "dir.h"
#include "environment.h"
#include "fsmonitor.h"
#include "gettext.h"
#include "parse.h"
#include "preload-index.h"
#include "progress.h"
#include "read-cache.h"
#include "thread-utils.h"
#include "repository.h"
#include "symlinks.h"
#include "trace2.h"
#define MAX_PARALLEL …
#define THREAD_COST …
struct progress_data { … };
struct thread_data { … };
static void *preload_thread(void *_data)
{ … }
void preload_index(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)
{ … }