On Thu, Jul 13, 2023 at 03:50:53PM -0700, Junio C Hamano wrote: > > @@ -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. I had the same thought myself. I wonder if this would be more straightforward to implement in a test-helper. Thanks, Taylor