]> Kevux Git Server - rit/commit
odb/source-loose: start converting to a proper `struct odb_source`
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:26 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:17 +0000 (18:47 +0900)
commitead691927b05dbbd2655db9a7183d5fcb935bf3b
treec46ed301520f2c5bc7f089528107b183f30fb217
parent1d451ba6fec076d357abf62607b97f585283030a
odb/source-loose: start converting to a proper `struct odb_source`

Start converting `struct odb_source_loose` into a proper pluggable
`struct odb_source` by embedding the base struct and assigning it the
new `ODB_SOURCE_LOOSE` type. Furthermore, wire up lifecycle management
of this source by implementing the `free` callback and taking ownership
of the chdir notifications.

Note that the loose source is not yet functional as a standalone `struct
odb_source`, as it's missing all of the callback implementations. These
will be wired up in subsequent commits.

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