Thread (12 messages) 12 messages, 2 authors, 2025-12-18
STALE192d
Revisions (2)
  1. v1 current
  2. v2 [diff vs current]

[PATCH 0/2] builtin/repack: avoid rewriting up-to-date MIDX

From: Patrick Steinhardt <hidden>
Date: 2025-12-08 18:27:34

Hi,

this small patch series introduces logic to avoid rewriting the
multi-pack index in case it's up-to-date already. This is especially
relevant in the context of geometric repacking, where we may decide to
not write any new packfiles, but we'd still rewrite the multi-pack
index.

This is a follow-up for the discussion that happened at [1].

Thanks!

Patrick

[1]: [ref]

---
Patrick Steinhardt (2):
      midx: fix `BUG()` when getting preferred pack without a reverse index
      builtin/repack: don't regenerate MIDX unless needed

 midx.c                      |  2 +-
 pack-revindex.h             |  3 +-
 repack-midx.c               | 90 +++++++++++++++++++++++++++++++++++++++++++++
 t/t5319-multi-pack-index.sh | 55 +++++++++++++++++++++++++++
 t/t7703-repack-geometric.sh | 80 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 228 insertions(+), 2 deletions(-)


---
base-commit: bdc5341ff65278a3cc80b2e8a02a2f02aa1fac06
change-id: 20251208-pks-skip-noop-rewrite-38d7f01c79c5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help