Skip to content

Commit b9061bc

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50685e0 commit b9061bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t6500-gc.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ assert_no_cruft_packs () {
218218
for argv in \
219219
"gc --cruft" \
220220
"-c gc.cruftPacks=true gc" \
221+
"-c gc.cruftPacks=false gc --cruft" \
221222
"-c feature.experimental=true gc" \
222223
"-c gc.cruftPacks=true -c feature.experimental=false gc"
223224
do
@@ -243,6 +244,9 @@ do
243244
done
244245

245246
for argv in \
247+
"gc" \
248+
"-c gc.cruftPacks=false gc" \
249+
"-c gc.cruftPacks=true gc --no-cruft" \
246250
"-c feature.expiremental=true -c gc.cruftPacks=false gc" \
247251
"-c feature.experimental=false gc"
248252
do

0 commit comments

Comments
 (0)