Re: [PATCH 1/2] repository: make repo_clear() idempotent
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 2, 2026, 16:29 UTC
- Message-ID
- <xmqqpkyvk45f.fsf@gitster.g>
- In-Reply-To
- <apfoNaZL8dg9OpbL@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> I was at one point wondering whether the parsed object pool should > really be an implementation detail of the object database -- parsing > objects should not have to depend on the repository, ...
We need to be a bit careful here, as the above directly contradicts our earlier design choice to have things like hash algorithm as properties of a repository instance.
> This would eventually ensure that our subsystems are more self-contained > and that they can be used more flexibly.
I do agree with this line of thinking, though.
Thanks.