Jonathan Tan <jonathantanmy@xxxxxxxxxx> writes: > Subsequent commits will teach Git another version of changed path > filter that has different behavior with paths that contain at least > one character with its high bit set, so test the existing behavior as > a baseline. > > Signed-off-by: Jonathan Tan <jonathantanmy@xxxxxxxxxx> > Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> > --- > t/t4216-log-bloom.sh | 47 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/t/t4216-log-bloom.sh b/t/t4216-log-bloom.sh > index fa9d32facf..0cf208fdf5 100755 > --- a/t/t4216-log-bloom.sh > +++ b/t/t4216-log-bloom.sh > @@ -404,4 +404,51 @@ test_expect_success 'Bloom generation backfills empty commits' ' > ) > ' > > +get_bdat_offset () { > + perl -0777 -ne \ > + 'print unpack("N", "$1") if /BDAT\0\0\0\0(....)/ or exit 1' \ > + .git/objects/info/commit-graph > +} Hopefully the 8-byte anchoring pattern is unique enough at least for the purpose of this test script.