]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: add num_large_offsets to write_midx_context
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:30 +0000 (14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit980f525c3cee7e272136eeb6e988a66f5f8a0bd8
tree4d9b4b116b298a1465e1c92ea218d2df77f65f2c
parent7a3ada1192bd251e530a668f63a65b4befa076d0
midx: add num_large_offsets 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 num_large_offsets" into the context. With
this new data, write_midx_large_offsets() now matches the
chunk_write_fn type.

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