diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-26 10:51:22 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-26 08:26:07 -0800 |
| commit | 736464b84f4439361ec10e9ef49bff674fea952d (patch) | |
| tree | 362fb7eb8b1bca5761da4309f87717a46410d4f9 /contrib/persistent-https | |
| parent | 37353119046414b2dccb26b32cb5224e0c9258e1 (diff) | |
| download | git-736464b84f4439361ec10e9ef49bff674fea952d.tar.gz git-736464b84f4439361ec10e9ef49bff674fea952d.zip | |
packfile: introduce function to iterate through objects
Introduce a new function `packfile_store_for_each_object()`. This
function is equivalent to `odb_source_loose_for_each_object()`, except
that it:
- Works on a single packfile store instead of working on the object
database level. Consequently, it will only yield packed objects of a
single object database source.
- Passes a `struct object_info` to the callback function.
As such, it provides the same callback interface as we already provide
for loose objects now. These functions will be used in a subsequent step
to implement `odb_for_each_object()`.
The `for_each_packed_object()` function continues to exist for now, but
it will be removed at the end of this patch series.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
