git/odb
Patrick Steinhardt 5c869c96a4 odb/source-files: add the ability to have multiple object dirs
In a subsequent commit we'll migrate handling of alternates into the
"files" backend. As part of that, the backend will need to grow the
ability to handle multiple object directories for alternates and for
transactions.

Introduce a `struct odb_files_dir::next` pointer so that we can have
multiple directories. Adapt the backend to loop through this list as
necessary. In general:

  - For reading paths we will loop through all object directories until
    we have found the object.

  - For writing paths we will typically write to the first of our object
    directories.

This mechanism isn't used yet as we still only ever have a single object
directory at the current point in time. But that will change over
subsequent commits.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-10-08 07:31:19 -07:00
..
source-files.c odb/source-files: add the ability to have multiple object dirs 2026-10-08 07:31:19 -07:00
source-files.h odb/source-files: add the ability to have multiple object dirs 2026-10-08 07:31:19 -07:00
source-inmemory.c Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
source-inmemory.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-loose.c Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
source-loose.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source-packed.c Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
source-packed.h odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.c odb/source: introduce function to map source type to name 2026-08-06 21:24:25 -07:00
source.h Merge branch 'ps/odb-alternates-at-creation' 2026-10-01 11:26:39 -07:00
streaming.c Merge branch 'ps/odb-eagerly-load-alternates' 2026-08-31 08:24:59 -07:00
streaming.h odb/streaming: unify function names to create new streams 2026-08-05 09:42:50 -07:00
transaction.c Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00
transaction.h Merge branch 'jt/receive-pack-pluggable-writes' 2026-08-31 08:25:00 -07:00