diff options
author | Ben Peart <benpeart@microsoft.com> | 2018-09-19 01:29:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-28 20:41:01 +0200 |
commit | 5765d97b71d7489f927354e1704fc0d1d7ef90a0 (patch) | |
tree | 3a70266eea5461b3295bf83805c6bb676f164bbf /preload-index.c | |
parent | read-cache: update TEST_GIT_INDEX_VERSION support (diff) | |
download | git-5765d97b71d7489f927354e1704fc0d1d7ef90a0.tar.xz git-5765d97b71d7489f927354e1704fc0d1d7ef90a0.zip |
preload-index: update GIT_FORCE_PRELOAD_TEST support
Rename GIT_FORCE_PRELOAD_TEST to GIT_TEST_PRELOAD_INDEX for consistency with
the other GIT_TEST_ special setups and properly document its use.
Add logic in t/test-lib.sh to give a warning when the old variable is set to
let people know they need to update their environment to use the new
variable.
Signed-off-by: Ben Peart <Ben.Peart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'preload-index.c')
-rw-r--r-- | preload-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/preload-index.c b/preload-index.c index 0a4e2933bb..a850e197c2 100644 --- a/preload-index.c +++ b/preload-index.c @@ -85,7 +85,7 @@ static void preload_index(struct index_state *index, return; threads = index->cache_nr / THREAD_COST; - if ((index->cache_nr > 1) && (threads < 2) && git_env_bool("GIT_FORCE_PRELOAD_TEST", 0)) + if ((index->cache_nr > 1) && (threads < 2) && git_env_bool("GIT_TEST_PRELOAD_INDEX", 0)) threads = 2; if (threads < 2) return; |