Re: [PATCH v4 0/6] odb: make creation of object database pluggable
Toon Claes <[email protected]> Thu, 06 Aug 2026 16:26:39 +0200
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
Patrick Steinhardt <[email protected]> writes: > Hi, > > when creating a new repository we create a couple of on-disk data > structures for the object database. This includes the "objects/" > directory hierarchy with "objects/info" and "objects/pack", which are > specific to the backend. > > This patch series makes the creation of the on-disk data structures > pluggable. While we continue to always create "objects/" regardless of > the backend (it's required for a repository to be recognized as such), > the other subdirectories are now created by the backend. This will allow > other backends to plug in their own logic. > > The series starts with a small detour into the loose-object map. This > detour is required so that we can defer initialization of the object > database itself to a later point in time. > > The series is based on 9a0c4701dc (The 7th batch, 2026-07-22). > > Changes in v4: > - Drop `APPLY_REPOSITOY_FORMAT_SKIP_ODB_CREATION` in favor of explicit > calls to `odb_new()`. > - Remove a useless call to `xstrdup()`. > - Mark a string as translatable. > - Link to v3: https://patch.msgid.link/[email protected] Structurally I'm very happy about this version. Only had some nits about comments and formatting, but overall this version looks good to me. Thanks! -- Cheers, Toon