Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2023-04-18 23:40:49 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-19 00:56:48 +0300
commitb9061bc628673c447996759821cecc399c908331 (patch)
tree9b1f69359a34ab4f67768172b2d9775f46caad01 /t/t6500-gc.sh
parent50685e0e0ba743892c9832c414494093ae3e8703 (diff)
t/t6500-gc.sh: add additional test cases
In the last commit, we refactored some of the tests in t6500 to make clearer when cruft packs will and won't be generated by `git gc`. Add the remaining cases not covered by the previous patch into this one, which enumerates all possible combinations of arguments that will produce (or not produce) a cruft pack. This prepares us for a future commit which will change the default value of `gc.cruftPacks` by ensuring that we understand which invocations do and do not change as a result. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6500-gc.sh')
-rwxr-xr-xt/t6500-gc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh
index a2f988c5c2..3ba2ae5140 100755
--- a/t/t6500-gc.sh
+++ b/t/t6500-gc.sh
@@ -218,6 +218,7 @@ assert_no_cruft_packs () {
for argv in \
"gc --cruft" \
"-c gc.cruftPacks=true gc" \
+ "-c gc.cruftPacks=false gc --cruft" \
"-c feature.experimental=true gc" \
"-c gc.cruftPacks=true -c feature.experimental=false gc"
do
@@ -243,6 +244,9 @@ do
done
for argv in \
+ "gc" \
+ "-c gc.cruftPacks=false gc" \
+ "-c gc.cruftPacks=true gc --no-cruft" \
"-c feature.expiremental=true -c gc.cruftPacks=false gc" \
"-c feature.experimental=false gc"
do