]> git.ipfire.org Git - thirdparty/git.git/commit - midx.h
midx: expose `write_midx_file_only()` publicly
authorTaylor Blau <me@ttaylorr.com>
Wed, 29 Sep 2021 01:55:01 +0000 (21:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Sep 2021 04:20:55 +0000 (21:20 -0700)
commit56d863e9799c9d440eba3e61346662745a58ab21
tree2af68ea9687f6b51aecc882fab79405d7d587077
parent73cd7d9420bb7d75207e8149521db375c789a81c
midx: expose `write_midx_file_only()` publicly

Expose a variant of the write_midx_file() function which ignores packs
that aren't included in an explicit "allow" list.

This will be used in an upcoming patch to power a new `--stdin-packs`
mode of `git multi-pack-index write` for callers that only want to
include certain packs in a MIDX (and ignore any packs which may have
happened to enter the repository independently, e.g., from pushes).

Those patches will provide test coverage for this new function.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
midx.h