]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: extract function to iterate through objects of a store
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Jan 2026 11:04:34 +0000 (12:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:50:28 +0000 (05:50 -0800)
commit900d89743667e28db4de002427e950a270bfb734
treebacba136231e03526518de75bdef59012af3e29f
parentb8578bfc57e8f097b1df0e4a9b17b92429af10e4
packfile: extract function to iterate through objects of a store

In the next commit we're about to introduce a new function that knows to
iterate through objects of a given packfile store. Same as with the
equivalent function for loose objects, this new function will also be
agnostic of backends by using a `struct object_info`.

Prepare for this by extracting a new shared function to iterate through
a single packfile store.

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