]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/repack-avoid-noop-midx-rewrite'
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Dec 2025 03:58:19 +0000 (12:58 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Dec 2025 03:58:19 +0000 (12:58 +0900)
commit4a8ee50c77adb6434f2c683f778f9db2249634a1
tree2e87414eb4acc5274c8b647c1e7abe0727613c82
parentd8e9716b91413c809542d7028088fcac520a5f20
parent6ce9d558ced275a707393d044e5b0035412f8360
Merge branch 'ps/repack-avoid-noop-midx-rewrite'

Even when there is no changes in the packfile and no need to
recompute bitmaps, "git repack" recomputed and updated the MIDX
file, which has been corrected.

* ps/repack-avoid-noop-midx-rewrite:
  midx-write: skip rewriting MIDX with `--stdin-packs` unless needed
  midx-write: extract function to test whether MIDX needs updating
  midx: fix `BUG()` when getting preferred pack without a reverse index
midx-write.c
midx.c