diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2020-03-20 12:38:10 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-20 14:22:32 -0700 |
commit | 2d657ab95fd5be5ebeee43fecec3d7cd94fdd2e4 (patch) | |
tree | 5e6268f9aa9298c660360d2467393b7c2596ba0f /t/README | |
parent | config: set pack.useSparse=true by default (diff) | |
download | tgif-2d657ab95fd5be5ebeee43fecec3d7cd94fdd2e4.tar.xz |
pack-objects: flip the use of GIT_TEST_PACK_SPARSE
The environment variable GIT_TEST_PACK_SPARSE was previously used
to allow testing the --sparse option for "git pack-objects" in
the test suite. This allowed interesting cases of "git push" to
also test this algorithm.
Since pack.useSparse is now true by default, we do not need this
variable to _enable_ the --sparse option, but instead to _disable_
it. This flips how we work with the variable a bit.
When checking for the variable, default to a value of -1 for
"unset". If unset, then take the default from the repo settings,
which is currently 1. Then, the --[no-]sparse command-line option
will override either of these settings.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r-- | t/README | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -386,9 +386,9 @@ GIT_TEST_INDEX_VERSION=<n> exercises the index read/write code path for the index version specified. Can be set to any valid version (currently 2, 3, or 4). -GIT_TEST_PACK_SPARSE=<boolean> if enabled will default the pack-objects -builtin to use the sparse object walk. This can still be overridden by -the --no-sparse command-line argument. +GIT_TEST_PACK_SPARSE=<boolean> if disabled will default the pack-objects +builtin to use the non-sparse object walk. This can still be overridden by +the --sparse command-line argument. GIT_TEST_PRELOAD_INDEX=<boolean> exercises the preload-index code path by overriding the minimum number of cache entries required per thread. |