Re: [PATCH v2 1/2] midx: apply gitconfig to midx repack
- From
Derrick Stolee <stolee@gmail.com>
- Date
- May 6, 2020, 12:03 UTC
- Message-ID
- <e991e5af-83bc-d868-473e-54ece3489a7e@gmail.com>
- In-Reply-To
- <21c648cc486cf1abee51076d21e55649b1464516.1588758194.git.gitgitgadget@gmail.com>
On 5/6/2020 5:43 AM, Son Luong Ngoc via GitGitGadget wrote:
> From: Son Luong Ngoc <sluongng@gmail.com>
...
> - `repack.writeBitmaps` when `--batch-size=0` was NOT adopted here as it > requires `--all` to be passed onto `git pack-objects`, which is very > slow. I think it would be nice to have this in a future patch.
Just my two cents here: the reachability bitmaps are really tied to the idea of a single pack right now. To create bitmaps, I would currently suggest using the 'git repack' builtin with the proper options. That command deletes the multi-pack-index, unfortunately, but it also produces a single pack and deletes the others (when creating bitmaps).
You are right that the `--all` option required to pack-objects is not appropriate to add inside `git multi-pack-index repack` as that changes the pattern. It requires loading all reachable objects, even if they are not already in packs covered by the multi-pack-index. This at minimum violates expectations with the --batch-size argument.
Integrating reachability bitmaps more closely with the multi-pack-index is certainly on our radar, but is a large endeavor.
This new patch looks good to me.
Thanks, -Stolee