]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: drop pointer to the "files" source
authorPatrick Steinhardt <ps@pks.im>
Thu, 21 May 2026 08:22:38 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 13:35:20 +0000 (22:35 +0900)
commit77877a4bea974ea53c82ce25ccbab944563e72fa
tree9eb00f51e5e146c7107d9bc4208d613b7b1d35e9
parentbb9190888600fae37554eee9ebda94720bb24868
odb/source-loose: drop pointer to the "files" source

Now that all callbacks of the loose source operate on `struct
odb_source_loose` directly we no longer have to reach into the "files"
source at all.

Drop this field and update `odb_source_loose_new()` to instead accept
all parameters required to initialize itself. This ensures that the
"loose" backend is a fully standalone source.

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