diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-08-24 12:15:51 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-24 13:21:13 -0700 |
commit | fa95666a403e5dda4c2c14ac168b5c3389126e6c (patch) | |
tree | 4fb2e5f34e5f5e1d4e423ce223a39136da919ac0 /t | |
parent | Git 2.33 (diff) | |
download | tgif-fa95666a403e5dda4c2c14ac168b5c3389126e6c.tar.xz |
pack-bitmap.c: harden 'test_bitmap_walk()' to check type bitmaps
The special `--test-bitmap` mode of `git rev-list` is used to compare
the result of an object traversal with a bitmap to check its integrity.
This mode does not, however, assert that the types of reachable objects
are stored correctly.
Harden this mode by teaching it to also check that each time an object's
bit is marked, the corresponding bit should be set in exactly one of the
type bitmaps (whose type matches the object's true type).
Co-authored-by: Jeff King <peff@peff.net>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions