Re: [PATCH] sequencer: avoid dropping fixup commit that targets self via commit-ish
- From
Johannes Altmanninger <aclopte@gmail.com>
- Date
- Sep 20, 2022, 03:27 UTC
- Message-ID
- <YykzGTMuKUGM793U@gmail.com>
- In-Reply-To
- <xmqqmtav7ygq.fsf@gitster.g>
On Mon, Sep 19, 2022 at 04:09:57PM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> Johannes Altmanninger <aclopte@gmail.com> 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.