aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-05 15:19:51 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-05 11:45:16 -0800
commitfdefdc2e6979e9e8cb28b34c458f42b44f217bf0 (patch)
tree1a0f9e53968bc428519b7d907c2069c7f0437337 /odb.h
parent1f3fd68e065b0f44432dc78c1b6f6e636929363e (diff)
downloadgit-fdefdc2e6979e9e8cb28b34c458f42b44f217bf0.tar.xz
odb/source: make `for_each_object()` function pluggable
Introduce a new callback function in `struct odb_source` to make the function pluggable. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/odb.h b/odb.h
index 70ffb033f9..692d9029ef 100644
--- a/odb.h
+++ b/odb.h
@@ -433,18 +433,6 @@ enum odb_for_each_object_flags {
};
/*
- * A callback function that can be used to iterate through objects. If given,
- * the optional `oi` parameter will be populated the same as if you would call
- * `odb_read_object_info()`.
- *
- * Returning a non-zero error code will cause iteration to abort. The error
- * code will be propagated.
- */
-typedef int (*odb_for_each_object_cb)(const struct object_id *oid,
- struct object_info *oi,
- void *cb_data);
-
-/*
* Iterate through all objects contained in the object database. Note that
* objects may be iterated over multiple times in case they are either stored
* in different backends or in case they are stored in multiple sources.