rev-list: die when --test-bitmap detects a mismatch
authorJeff King <peff@peff.net>
Tue, 8 Dec 2020 22:03:33 +0000 (17:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2020 22:48:15 +0000 (14:48 -0800)
commit2978b00691c1246149892882265cd62a6921cbf5
treec604d55968ed49e290be2e2b80d315c263dd69e2
parentc5cd7490762b20cdec3844e99cfc908c38917906
rev-list: die when --test-bitmap detects a mismatch

You can use "git rev-list --test-bitmap HEAD" to check that bitmaps
produce the same answer we'd get from a regular traversal. But if we
detect an error, we only print "mismatch", and still exit with a
successful error code.

That makes the uses of --test-bitmap in the test suite (e.g., in t5310)
mostly pointless: even if we saw an error, the tests wouldn't notice.
Let's instead call die(), which will let these tests work as designed,
and alert us if the bitmaps are bogus.

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>
pack-bitmap.c