Re: [PATCH v2 08/23] pack-bitmap: make `bitmap_writer_push_bitmapped_commit()` public
- From
Jeff King <peff@peff.net>
- Date
- May 13, 2024, 18:50 UTC
- Message-ID
- <20240513185055.GB2675586@coredump.intra.peff.net>
- In-Reply-To
- <dfd4b73d12edc1833e5090c956cda6f28046c9e4.1714422410.git.me@ttaylorr.com>
On Mon, Apr 29, 2024 at 04:43:22PM -0400, Taylor Blau wrote:
Show 6 quoted lines
> The pseudo-merge selection code will be added in a subsequent commit, > and will need a way to push the allocated commit structures into the > bitmap writer from a separate compilation unit. > > Make the `bitmap_writer_push_bitmapped_commit()` function part of the > pack-bitmap.h header in order to make this possible.
I was a little surprised that this function and the one in the previous commit needed to be public, since this whole topic is restricted to writing, which is mostly contained to pack-bitmap-write.c. But you've pulled the pseudo-merge bits out to pseudo-merge.[ch], and they need access, which makes sense.
One could argue that it could all get stuffed into pack-bitmap-write.c, but that is already getting to be a pretty large and complex file. So this is probably the best route.
-Peff