Hi, this patch series is a follow up to the recent patch series that started to move the MIDX into its object source. It refactors the MIDX subsystem so that we always read and write them via an ODB source. This ultimately allows us to store a pointer to the owning ODB source in the MIDX and thus dedup some redundant information. This series is built on top of e813a0200a7 (The fifteenth batch, 2025-07-28) with ps/object-store-midx at ec865d94d46 (midx: remove now-unused linked list of multi-pack indices, 2025-07-15) merged into it. Thanks! Patrick --- Patrick Steinhardt (8): odb: store locality in object database sources odb: allow `odb_find_source()` to fail odb: return newly created in-memory sources midx: drop redundant `struct repository` parameter midx: load multi-pack indices via their source midx: write multi-pack indices via their source midx: stop duplicating info redundant with its owning source midx: compute paths via their source builtin/commit-graph.c | 4 ++ builtin/multi-pack-index.c | 31 +++++++--- builtin/pack-objects.c | 2 +- builtin/repack.c | 7 ++- midx-write.c | 116 +++++++++++++++++-------------------- midx.c | 135 +++++++++++++++++++++----------------------- midx.h | 42 ++++++-------- odb.c | 40 +++++++------ odb.h | 16 ++++-- pack-bitmap.c | 15 +++-- pack-revindex.c | 14 ++--- packfile.c | 13 ++--- repository.c | 1 + t/helper/test-read-midx.c | 31 +++++----- t/t5319-multi-pack-index.sh | 8 +-- 15 files changed, 243 insertions(+), 232 deletions(-) --- base-commit: ee2fd3d4b224c8145eeff04101ea6075560973e1 change-id: 20250729-b4-pks-midx-deduplicate-source-info-fcf3c08bfd53