Re: [PATCH 3/4] reftable/stack: register lockfiles during compaction
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 6, 2024, 16:39 UTC
- Message-ID
- <xmqq7ciftiuw.fsf@gitster.g>
- In-Reply-To
- <ZehauDgP4L40QKcH@tanuki>
Patrick Steinhardt <ps@pks.im> writes:
Show 9 quoted lines
>> Naive question, why do we include the headers in `system.h`? I assume >> this is because they are common? Are there other benefits to this >> indirection? > > Well, "system.h" is supposedly the glue between the common Git codebase > and the reftable library, so all Git-specific headers should be added > here instead of being added individually to the respective files in the > library. Whether that is ultimately a sensible thing and whether it > really helps us all that much is a different question though.
That matches my understanding of what have been done in reftable/ directory. If a project other than Git wants to use the reftable code, they only need to prepare a shim and write their own "system.h" to provide services equivalent to what Git supplies.
Thanks.