From: Jeff King Date: Tue, 07 Apr 2026 06:05:54 GMT Subject: Re: [PATCH 08/16] midx: expose `midx_layer_contains_pack()` Message-ID: <20260407060554.GC714878@coredump.intra.peff.net> In-Reply-To: <6af23849f1d499e7a23d1ef4a70ac3d29748e1ce.1774820449.git.me@ttaylorr.com> On Sun, Mar 29, 2026 at 05:41:11PM -0400, Taylor Blau wrote: > 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. Yup, that is a much better name. -Peff