Re: [PATCH 4/8] pack-bitmap: consolidate `find_object_pos()` success path
- From
Jeff King <peff@peff.net>
- Date
- May 27, 2026, 09:27 UTC
- Message-ID
- <20260527092707.GE981444@coredump.intra.peff.net>
- In-Reply-To
- <c9a560660949c53575a9b1e81160d25212a1f484.1779207127.git.me@ttaylorr.com>
On Tue, May 19, 2026 at 12:12:44PM -0400, Taylor Blau wrote:
Show 7 quoted lines
> Both sides of `find_object_pos()` report success in the same way by > setting the optional `found` out-parameter and return the resolved > bitmap position. > > Prepare for adding more bookkeeping around object-position lookups by > storing the result in a local `pos` variable and sharing the success > return path between the packlist and MIDX cases.
OK. Modulo the missing "pos" fixup, this seems like an obviously correct refactor. On its own its hard to judge if it makes things better, so let's read on.
-Peff