]> git.99rst.org Git - git.git/commit
fsck: check rev-index position values
authorDerrick Stolee <redacted>
Mon, 17 Apr 2023 16:21:40 +0000 (16:21 +0000)
committerJunio C Hamano <redacted>
Mon, 17 Apr 2023 21:39:04 +0000 (14:39 -0700)
commit5f658d1b577722111564f51962d6af33d1fe96c6
tree013eb66125406727024d481aaf33511055356ec1
parentd975fe1fa57d57cfd21a97f96f4a94b99f50f2f4
fsck: check rev-index position values

When checking a rev-index file, it may be helpful to identify exactly
which positions are incorrect. Compare the rev-index to a
freshly-computed in-memory rev-index and report the comparison failures.

This additional check (on top of the checksum validation) can help find
files that were corrupt by a single bit flip on-disk or perhaps were
written incorrectly due to a bug in Git.

Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
pack-revindex.c
t/t5325-reverse-index.sh
git clone https://git.99rst.org/PROJECT