]> git.99rst.org Git - git.git/commit
midx: expose `write_midx_file_only()` publicly
authorTaylor Blau <redacted>
Wed, 29 Sep 2021 01:55:01 +0000 (21:55 -0400)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
midx.c
midx.h
git clone https://git.99rst.org/PROJECT