Re: [PATCH v5 5/5] builtin/merge-tree.c: implement support for `--write-pack`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 14, 2023, 01:40 UTC
- Message-ID
- <xmqqpm0d1591.fsf@gitster.g>
- In-Reply-To
- <20231113220546.GB2065691@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I posted an alternative in response to Elijah; the general idea being to > allow the usual object-lookup code to access the in-progress pack. That > would keep us limited to a single pack.
If such a mechanism is done in a generic way, would we be able to simplify fast-import a lot, I wonder? IIRC, it had quite a lot of code to remember what it has written to its output to work around the exact issue your alternative tries to solve. In fact, maybe we could make fast-import a thin wrapper around the bulk checkin infrastructure?