]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-packed: extract logic to skip certain packs
authorPatrick Steinhardt <ps@pks.im>
Thu, 25 Jun 2026 09:57:39 +0000 (11:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Jun 2026 20:20:20 +0000 (13:20 -0700)
commitd45f956f2022a90d39b1ce82aea668cce73f1d75
tree622fc006f257c0bb0eed462d97f8a2566ebdd9dd
parent9b46d7c7766753fd55687ac4357f3b9f988de4e3
odb/source-packed: extract logic to skip certain packs

The caller can pass flags that allow them to filter out specific kinds
of objects when iterating objects via `odb_for_each_object()`. This only
works for "normal" iteration though, as we `BUG()` when the user passes
flags and specifies an object prefix.

This limitation will be lifted in the next commit. Prepare for this by
extracting the logic that skips certain kinds of packs so that we can
easily reuse it.

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