From 05151cf3602d5ebaaa4e04c415e8481cb1c7ddf6 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 5 Mar 2026 15:19:47 +0100 Subject: odb/source: make `reprepare()` function pluggable Introduce a new callback function in `struct odb_source` to make the function pluggable. Signed-off-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- odb.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'odb.c') diff --git a/odb.c b/odb.c index 86f7cf70a8..2cf6a53dc3 100644 --- a/odb.c +++ b/odb.c @@ -1119,11 +1119,8 @@ void odb_reprepare(struct object_database *o) o->loaded_alternates = 0; odb_prepare_alternates(o); - for (source = o->sources; source; source = source->next) { - struct odb_source_files *files = odb_source_files_downcast(source); - odb_source_loose_reprepare(source); - packfile_store_reprepare(files->packed); - } + for (source = o->sources; source; source = source->next) + odb_source_reprepare(source); o->approximate_object_count_valid = 0; -- cgit v1.3