[go: up one dir, main page]

Skip to content

object-store: carve out the object database subsystem

Hi,

this patch series refactors the object store subsystem to become more self-contained by getting rid of the_repository. Instead of passing in the repository explicitly, we start to pass in the object store itself, which is in contrast to many other refactorings we did, but in line with what we did for the ref store, as well.

This series also starts to properly scope functions to the carved out object database subsystem, which requires a bit of shuffling. This allows us to have a short-and-sweet odb_ prefix for functions and prepares us for a future with pluggable object backends.

The series is structured as follows:

  • Patches 1 to 3 rename struct object_store and struct object_directory as well as the code files.

  • Patches 4 to 12 refactor "odb.c" to get rid of the_repository.

  • Patches 13 to 17 adjust the name of remaining functions so that they can be clearly attributed to the ODB. I'm happy to kick these patches out of this series and resend them at a later point in case they create too much turmoil.

This series is built on top of 6f84262c (The eleventh batch, 2025-05-05) with ps/object-store-cleanup at 8a9e27be (object-store: drop repo_has_object_file(), 2025-04-29) merged into it. There are a couple of trivial conflicts when merged with "seen", I have appended the merge conflict resolution as a patch at the end of this mail.

Thanks!

Patrick

--- b4-submit-tracking ---

This section is used internally by b4 prep for tracking purposes.

{ "series": { "revision": 1, "change-id": "20250505-pks-object-store-wo-the-repository-9c6cbdf8d4b1", "prefixes": [] } }

Closes Refactor `object-store.c` to not depend on glob... (#543 - closed).

Edited by Patrick Steinhardt

Merge request reports

Loading