summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-01-26 10:51:24 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-26 08:26:07 -0800
commitcc47e3d38c5be2969df3dba6814ee0e685a07de2 (patch)
tree03413bdb8ee7ae8fec4173f2be91e7ff146c7648 /contrib/persistent-https
parentdf2fbdfa553526062e5234286f60bd643941298a (diff)
downloadgit-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