On Mon, Sep 19, 2022 at 04:09:57PM -0700, Junio C Hamano wrote: > Johannes Altmanninger <aclopte@xxxxxxxxx> writes: > > > +test_expect_success 'auto squash of fixup commit that matches branch name which points back to fixup commit' ' > > ... > > + sed -ne "/^[^#]/{s/[0-9a-f]\{7,\}/HASH/g;p}" tmp >actual && FWIW I copied and adapted this one from the remerge-diff tests. Not sure what other tests use. Maybe the HASH replacement is worth a test helper even though it is a heuristic that can go wrong.