diff options
Diffstat (limited to 'preload-index.c')
-rw-r--r-- | preload-index.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/preload-index.c b/preload-index.c index e5529a5..63fd35d 100644 --- a/preload-index.c +++ b/preload-index.c @@ -1,14 +1,20 @@ /* * Copyright (C) 2008 Linus Torvalds */ -#include "cache.h" +#include "git-compat-util.h" #include "pathspec.h" #include "dir.h" +#include "environment.h" #include "fsmonitor.h" -#include "config.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" /* * Mostly randomly chosen maximum thread counts: we @@ -151,6 +157,12 @@ void preload_index(struct index_state *index, } stop_progress(&pd.progress); + if (pathspec) { + /* earlier we made deep copies for each thread to work with */ + for (i = 0; i < threads; i++) + clear_pathspec(&data[i].pathspec); + } + trace_performance_leave("preload index"); trace2_data_intmax("index", NULL, "preload/sum_lstat", t2_sum_lstat); |