midx: rename pack_info to write_midx_context
commit577dc49696afee67fb507e0bd72be4c8677b83c2
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:26 +0000 (18 14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (18 13:38 -0800)
tree7bb67e4ca1be28d2c2345e0ded61d299f4588a76
parent47410aa8370fdfc67d379fc808ac2316aef1d2c5
midx: rename pack_info to write_midx_context

In an effort to streamline our chunk-based file formats, align some of
the code structure in write_midx_internal() to be similar to the
patterns in write_commit_graph_file().

Specifically, let's create a "struct write_midx_context" that can be
used as a data parameter to abstract function types.

This change only renames "struct pack_info" to "struct
write_midx_context" and the names of instances from "packs" to "ctx". In
future changes, we will expand the data inside "struct
write_midx_context" and align our chunk-writing method with the
chunk-format API.

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