Re: [PATCH v2 6/8] odb/source: support writing alternates when creating the database
- From
Justin Tobler <jltobler@gmail.com>
- Date
- Sep 6, 2026, 17:02 UTC
- Message-ID
- <ap2bu85Ut_bN4wkt@denethor>
- In-Reply-To
- <20260831-pks-odb-write-alternates-at-creation-time-v2-6-aecd2382ba1c@pks.im>
On 26/08/31 12:02PM, Patrick Steinhardt wrote:
Show 8 quoted lines
> +struct odb_create_on_disk_options {
> + /*
> + * Alternates that shall be written into the newly created object
> + * database. Whether or not this option can be handled is specific to
> + * the backend.
> + */
> + const struct strvec *alternates;
> +};So ODB interface here still exposes a way to signal alternates to the backend, but an alternative backend may not actually use alternates at all. Out of curiousity, does this mean git-clone(1) options such as "--shared" should only be allowed to work with the "files" backend? Or should the expected behavior of such options just be backend specific?
-Justin