]> git.ipfire.org Git - thirdparty/git.git/commit
midx: expose `midx_layer_contains_pack()`
authorTaylor Blau <me@ttaylorr.com>
Tue, 19 May 2026 15:58:00 +0000 (11:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2026 02:31:13 +0000 (11:31 +0900)
commitee6fb5823822bb03bd8dc5b7e7645e5b319033f0
tree4ae5c2e6d1ce8a3c5cbb889b4f012a16802c5113
parentf0ef2afb8be0aa37b80bc1cf1f1a9acfb208f00f
midx: expose `midx_layer_contains_pack()`

Rename the function `midx_contains_pack_1()` to instead be called
`midx_layer_contains_pack()` and make it accessible. Unlike
`midx_contains_pack()` (which recurses through the entire chain), this
function checks only a single MIDX layer.

This will be used by a subsequent commit to determine whether a given
pack belongs to the tip MIDX layer specifically, rather than to any
layer in the chain.

No functional changes are present in this commit.

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