-
Notifications
You must be signed in to change notification settings - Fork 2.5k
midx: Add a way to write multi-pack-index files #5404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cf16115
to
9c99c4d
Compare
9c99c4d
to
4cec6b3
Compare
4cec6b3
to
263a714
Compare
I'm surprised that we write the midx to a |
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
refactored and rebased! |
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-index
files from.idx
/.pack
files.Part of: #5399