]> Kevux Git Server - rit/commit
odb/source-loose: drop pointer to the "files" source
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:41 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:19 +0000 (18:47 +0900)
commitef4778bcba323ab38d442811f851af092760b6b5
tree2909ddce49e07eb0bda28726c713ab34968c3793
parent87af3bb434b86805f69fae40c966d92db1bd2eae
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