]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: add pack_perm to write_midx_context
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:29 +0000 (14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit7a3ada1192bd251e530a668f63a65b4befa076d0
treee127ce70aa6d5e994a7ff8cb692942e8ec3c4961
parent31bda9a237b363574bd8a5bd98f86bdeb6ced1e6
midx: add pack_perm to write_midx_context

In an effort to align write_midx_internal() with the chunk-format API,
continue to group necessary data into "struct write_midx_context". This
change collects the "uint32_t *pack_perm" and large_offsets_needed bit
into the context.

Update write_midx_object_offsets() to match chunk_write_fn.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c