Re: [PATCH v5 2/4] t4216: test changed path filters with high bit paths
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Jul 19, 2023, 17:27 UTC
- Message-ID
- <ZLgc5q0FrL1s7j0j@nand.local>
- In-Reply-To
- <xmqq4jm7l92q.fsf@gitster.g>
On Thu, Jul 13, 2023 at 03:50:53PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> > @@ -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