git/odb
Patrick Steinhardt 2691faaee4 odb: make creation of on-disk structures pluggable
When creating a new "files" object database source we have to create a
couple of directories. These directories are of course specific to this
particular backend, and a different backend may require a setup that is
completely different.

Make the creation of on-disk structures pluggable to accommodate for
this.

Note that there is one exception though: the "objects" directory must
exist in a repository regardless of which backend is in use. If it
doesn't exist then the repository is not treated as a Git repository at
all. Consequently, we create this directory regardless of the backend.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-07-24 10:21:44 -07:00
..
source-files.c odb: make creation of on-disk structures pluggable 2026-07-24 10:21:44 -07:00
source-files.h odb/source: introduce function to map source type to name 2026-07-24 10:21:44 -07:00
source-inmemory.c Merge branch 'jt/receive-pack-use-odb-transactions' 2026-07-22 10:30:53 -07:00
source-inmemory.h odb/source: introduce function to map source type to name 2026-07-24 10:21:44 -07:00
source-loose.c setup: detangle loading of loose object maps 2026-07-24 10:21:44 -07:00
source-loose.h odb/source: introduce function to map source type to name 2026-07-24 10:21:44 -07:00
source-packed.c Merge branch 'ps/odb-for-each-object-filter' 2026-07-22 10:30:54 -07:00
source-packed.h odb/source: introduce function to map source type to name 2026-07-24 10:21:44 -07:00
source.c odb/source: introduce function to map source type to name 2026-07-24 10:21:44 -07:00
source.h odb: make creation of on-disk structures pluggable 2026-07-24 10:21:44 -07:00
streaming.c odb: use size_t for object_info.sizep and the size APIs 2026-06-15 07:45:41 -07:00
streaming.h Merge branch 'ps/odb-in-memory' into ps/odb-source-loose 2026-05-21 22:34:55 +09:00
transaction.c odb/transaction: introduce ODB transaction flags 2026-07-10 13:21:53 -07:00
transaction.h odb/transaction: introduce ODB transaction flags 2026-07-10 13:21:53 -07:00