]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'tb/multi-pack-reuse-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 18:47:23 +0000 (11:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 18:47:23 +0000 (11:47 -0700)
commit3bf057a0cd6a75125a5bd239372f9fc4fea6c338
tree67d0059da55bf1ed31e1b484c0ae8a9d52495de8
parent04595eb4079e33496124a132832d28aba4a94dfc
parentd3e7db2b8285e3ac3e9c28df51eab8237bf9c700
Merge branch 'tb/multi-pack-reuse-fix'

A data corruption bug when multi-pack-index is used and the same
objects are stored in multiple packfiles has been corrected.

* tb/multi-pack-reuse-fix:
  builtin/pack-objects.c: do not open-code `MAX_PACK_OBJECT_HEADER`
  pack-bitmap.c: avoid repeated `pack_pos_to_offset()` during reuse
  builtin/pack-objects.c: translate bit positions during pack-reuse
  pack-bitmap: tag bitmapped packs with their corresponding MIDX
  t/t5332-multi-pack-reuse.sh: verify pack generation with --strict