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
This commit is contained in:
Junio C Hamano
2020-08-24 14:54:28 -07:00
3 changed files with 25 additions and 6 deletions

2
midx.c
View File

@ -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;