]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: use chunk-format API in write_midx_internal()
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:33 +0000 (14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commit63a8f0e9b9d9ce636738094391619c35856f7665
tree0643bd670629dc9b4d3baa0f806c6228e9512ebf
parentc1442410d869cd5fb2c0dd79aa1a7c152b99b0f9
midx: use chunk-format API in write_midx_internal()

The chunk-format API allows writing the table of contents and all chunks
using the anonymous 'struct chunkfile' type. We only need to convert our
local chunk logic to this API for the multi-pack-index writes to share
that logic with the commit-graph file writes.

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