]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: use context in write_midx_pack_names()
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 18 Feb 2021 14:07:27 +0000 (14:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 21:38:16 +0000 (13:38 -0800)
commitb4d941420bce15cd48bccabc1faa90477bda2fae
tree55e76d7df26e3d745378d2e1aadbbb8d77ea00ef
parent577dc49696afee67fb507e0bd72be4c8677b83c2
midx: use context in write_midx_pack_names()

In an effort to align the write_midx_internal() to use the chunk-format
API, start converting chunk writing methods to match chunk_write_fn. The
first case is to convert write_midx_pack_names() to take "void *data".
We already have the necessary data in "struct write_midx_context", so
this conversion is rather mechanical.

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