]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: introduce `struct odb_source_loose`
authorPatrick Steinhardt <ps@pks.im>
Mon, 3 Nov 2025 07:42:00 +0000 (08:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Nov 2025 20:18:46 +0000 (12:18 -0800)
commitece43d9dc70b1717484ee78b66aef4f9390c2b2b
tree614ea40a974968ea8ddd66da95edf7575295973c
parent0cc12dedef2885dba8cf2635697767d394baf91f
object-file: introduce `struct odb_source_loose`

Currently, all state that relates to loose objects is held directly by
the `struct odb_source`. Introduce a new `struct odb_source_loose` to
hold the state instead so that it is entirely self-contained.

This structure will eventually morph into the backend for accessing
loose objects. As such, this is part of the refactorings to introduce
pluggable object databases.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h
odb.c
odb.h