Re: [PATCH v2 0/7] odb: introduce object storage extension
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Oct 21, 2026, 14:31 UTC
- Message-ID
- <CAOLa=ZS3vbjY9yxx1TCaAtUp5D5KeQ+qiB805SPqhZT7NX+uFg@mail.gmail.com>
- In-Reply-To
- <20261021-b4-pks-odb-extension-v2-0-8cf11b65eda8@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 32 quoted lines
> Hi,
>
> this patch series introduces the object storage extension. The extension
> is of course similar in spirit and design to the ref storage extension:
> it can be configured via "extensions.objectStorage", has the same syntax
> with "<schema>[://<payload>]", and we have the same mechanisms to
> configure it ("--object-storage-format=", GIT_OBJECT_STORAGE_FORMAT,
> GIT_DEFAULT_OBJECT_STORAGE_FORMAT, "init.defaultObjetcStorageFormat").
>
> For now, we only support the "files" object storage format, so not a lot
> of stuff really changes. That being said, its optional payload allows
> you to configure a different location for the ".git/objects" directory.
> So if you specify "extensions.objectStorage=files://objs", objects would
> be stored in ".git/objs" instead.
>
> The series is built on top of c51408889c (The 6th batch, 2026-10-16)
> with the following dependencies merged into it:
>
> - ps/odb-files-alternates at 0ba59c8453 (odb/source: drop
> `read_alternates` callback, 2026-10-08) merged into it.
>
> - ps/setup-enforce-repo-passed-to-create-repository-has-no-state
> (phew, what a mouthful) at 0ba59c8453 (odb/source: drop
> `read_alternates` callback, 2026-10-08).
>
> Note that these two series conflict with one another. The conflict can
> easily be resolved by just deleting the whole conflicting sections.
>
> Changes in v2:
> - Ensure that `repo->object_storage_format` is always populated.
> - Link to v1: https://patch.msgid.link/20261019-b4-pks-odb-extension-v1-0-143a5963b77f@pks.im
>I had a look at the range diff and it looks as expected, I had one small cleanup comment in 5/7, but its harmless so I'd be okay with it as is. Thanks!