diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-26 10:51:24 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-26 08:26:07 -0800 |
| commit | cc47e3d38c5be2969df3dba6814ee0e685a07de2 (patch) | |
| tree | 03413bdb8ee7ae8fec4173f2be91e7ff146c7648 /contrib/persistent-https | |
| parent | df2fbdfa553526062e5234286f60bd643941298a (diff) | |
| download | git-cc47e3d38c5be2969df3dba6814ee0e685a07de2.tar.gz git-cc47e3d38c5be2969df3dba6814ee0e685a07de2.zip | |
builtin/fsck: refactor to use `odb_for_each_object()`
In git-fsck(1) we have two callsites where we iterate over all objects
via `for_each_loose_object()` and `for_each_packed_object()`. Both of
these are trivially convertible with `odb_for_each_object()`.
Refactor these callsites accordingly.
Note that `odb_for_each_object()` may iterate over the same object
multiple times, for example when it exists both in packed and loose
format. But this has already been the case beforehand, so this does not
result in a change in behaviour.
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
