summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-08-24 21:54:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-24 21:54:28 (GMT)
commit9e8c7542cb1307b0a23c8bdc2a8e039ab6f11b17 (patch)
treea7a252a7c173d8eca3d455c1c329687bf5b295d3 /midx.c
parenta654836d96aced223bfbee57bd2ac1989eb6d77f (diff)
parent1eb22c7dd803fc05513fde0bd96befeb8c725e05 (diff)
downloadgit-9e8c7542cb1307b0a23c8bdc2a8e039ab6f11b17.zip
git-9e8c7542cb1307b0a23c8bdc2a8e039ab6f11b17.tar.gz
git-9e8c7542cb1307b0a23c8bdc2a8e039ab6f11b17.tar.bz2
Merge branch 'ds/midx-repack-to-batch-size'
The "--batch-size" option of "git multi-pack-index repack" command is now used to specify that very small packfiles are collected into one until the total size roughly exceeds it. * ds/midx-repack-to-batch-size: multi-pack-index: repack batches below --batch-size
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index 551a30b..df33fac 100644
--- a/midx.c
+++ b/midx.c
@@ -1394,7 +1394,7 @@ static int fill_included_packs_batch(struct repository *r,
free(pack_info);
- if (total_size < batch_size || packs_to_repack < 2)
+ if (packs_to_repack < 2)
return 1;
return 0;