midx: Add a way to write multi-pack-index files#5404
Conversation
cf16115 to
9c99c4d
Compare
9c99c4d to
4cec6b3
Compare
4cec6b3 to
263a714
Compare
as large as all the .pack files in a repo combined (my copy of linux' is 1G). IIRC I did that for simplicity, but i can refactor things so that |
I think that would be nice if you could - I think that midx is going to be used in large repositories, so avoiding that malloc of a contiguous hunk of memory to store the data would be a win. |
263a714 to
2ea0ae4
Compare
This change adds the git_midx_writer_* functions to allow to write and create `multi-pack-index` files from `.idx`/`.pack` files. Part of: libgit2#5399
2ea0ae4 to
fff209c
Compare
ethomson
left a comment
There was a problem hiding this comment.
LGTM, a couple of questions and a couple of minor requests.

This change adds the git_midx_writer_* functions to allow to
write and create
multi-pack-indexfiles from.idx/.packfiles.Part of: #5399