git/odb
Patrick Steinhardt cfd575f0a9 odb: introduce `struct odb_for_each_object_options`
The `odb_for_each_object()` function only accepts a bitset of flags. In
a subsequent commit we'll want to change object iteration to also
support iterating over only those objects that have a specific prefix.
While we could of course add the prefix to the function signature, or
alternatively introduce a new function, both of these options don't
really seem to be that sensible.

Instead, introduce a new `struct odb_for_each_object_options` that can
be passed to a new `odb_for_each_object_ext()` function. Splice through
the options structure into the respective object database sources.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-03-20 13:16:41 -07:00
..
source-files.c odb: introduce `struct odb_for_each_object_options` 2026-03-20 13:16:41 -07:00
source-files.h odb/source: make `free()` function pluggable 2026-03-05 11:45:15 -08:00
source.c odb/source: make `free()` function pluggable 2026-03-05 11:45:15 -08:00
source.h odb: introduce `struct odb_for_each_object_options` 2026-03-20 13:16:41 -07:00
streaming.c odb: stop including "odb/source.h" 2026-03-12 08:38:42 -07:00
streaming.h