diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-08-07 05:34:28 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-06 21:24:25 -0700 |
| commit | c1d233bd3001530042ff097f6aef0a658b7f79cb (patch) | |
| tree | b2bdaf08bce35d8abaf2ea417b029624c1d3e78d /gitweb/gitweb.css | |
| parent | 30bc6f0e8c2aef5f9280468fa2ca7c170209603f (diff) | |
setup: defer object database creation
In a subsequent commit we'll make the creation of the on-disk data
structures of an object database pluggable. This will lead to an
in-between state where we have already configured the repository's
object database, but it's not usable yet until we eventually call
`create_object_directory()`.
Lift the call to `odb_new()` out of `apply_repository_format()` so that
callers have more wiggle room with when exactly they call it, and adapt
them accordingly. The only exception is `init_db()`, where we now defer
creating the object database until we call `create_object_database()`.
With this change, initializing and creating the object database on disk
is now neatly encapsulated in a single function, which will make it
easier for a subsequent commit to move creation of the on-disk data
structures into the `struct odb_source` backends.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions
