]> git.ipfire.org Git - thirdparty/git.git/commit
odb: introduce `odb_for_each_object()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Jan 2026 11:04:36 +0000 (12:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:50:28 +0000 (05:50 -0800)
commit85f8f1c2fa7552dfb19e33793516c33e3961cd8f
treec8a1c2aa9cb4594b5de30c83f45ee8c4bd18ab80
parentb2aa629132b9dea035b1636557096611369bde5d
odb: introduce `odb_for_each_object()`

Introduce a new function `odb_for_each_object()` that knows to iterate
through all objects part of a given object database. This function is
essentially a simple wrapper around the object database sources.

Subsequent commits will adapt callers to use this new function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
odb.c
odb.h