From: Patrick Steinhardt Date: Thu, 09 Jul 2026 08:35:20 GMT Subject: [PATCH 0/7] odb: introduce object filters to `odb_for_each_object()` Message-ID: <20260709-pks-odb-for-each-object-filter-v1-0-82fe014b12b3@pks.im> Hi, this patch series introduces object filters to `odb_for_each_object()`. The intent of this is to make `git cat-file --batch-all-objects` work with pluggable object databases. Right now it doesn't because it reaches into internals of the "packed" backend to efficiently handle bitmapped objects. The series is built on top of f85a7e6620 (Start Git 2.56 cycle, 2026-07-06) with ps/odb-drop-whence at 8a7ad23e11 (odb: document object info fields, 2026-07-02) merged into it. Thanks! Patrick --- Patrick Steinhardt (7): odb/source-packed: improve lookup when enumerating objects pack-bitmap: mark object filter as `const` pack-bitmap: allow aborting iteration of bitmapped objects pack-bitmap: iterate object sources when opening bitmaps pack-bitmap: introduce function to open bitmap for a single source odb: introduce object filters to `odb_for_each_object()` builtin/cat-file: filter objects via object database builtin/cat-file.c | 76 +++----------------------------- builtin/pack-objects.c | 2 +- builtin/rev-list.c | 2 +- odb.h | 12 ++++++ odb/source-packed.c | 77 ++++++++++++++++++++++++++++++--- pack-bitmap.c | 115 ++++++++++++++++++++++++++++--------------------- pack-bitmap.h | 10 ++++- 7 files changed, 164 insertions(+), 130 deletions(-) --- base-commit: 3c8e2790f2ce15e8b5d4b4e6ced711b12649f32a change-id: 20260708-pks-odb-for-each-object-filter-13286fa3523d