diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-26 10:51:25 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-26 08:26:07 -0800 |
| commit | 2813c97310a998510ad4bcbbf38a774fd6bb5386 (patch) | |
| tree | 7d27c8b2d0b55e16ac34375e5061f0b8948b843a /contrib/persistent-https | |
| parent | cc47e3d38c5be2969df3dba6814ee0e685a07de2 (diff) | |
| download | git-2813c97310a998510ad4bcbbf38a774fd6bb5386.tar.gz git-2813c97310a998510ad4bcbbf38a774fd6bb5386.zip | |
treewide: enumerate promisor objects via `odb_for_each_object()`
We have multiple callsites where we enumerate all promisor objects in
the object database via `for_each_packed_object()`. This is done by
passing the `ODB_FOR_EACH_OBJECT_PROMISOR_ONLY` flag, which causes us to
skip over all non-promisor objects.
These callsites can be trivially converted to `odb_for_each_object()` as
we know to skip enumeration of loose objects in case the `PROMISOR_ONLY`
flag was passed by the caller.
Refactor the sites accordingly.
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
