]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: start converting to a proper `struct odb_source`
authorPatrick Steinhardt <ps@pks.im>
Thu, 21 May 2026 08:22:23 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 13:35:18 +0000 (22:35 +0900)
commit30b310e7921a9944fa49c6bf8bd7cd84a9eb4abe
treeadf1e2599b65aab54e3ef5c8b64a1a4505b68cc3
parent64a7b1de0480336d4a8ad96653d868d28f3cf4dd
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