From: Oswald Buddenhagen Date: Wed, 17 May 2023 10:00:08 GMT Subject: Re: [PATCH v2] sequencer: beautify subject of reverts of reverts Message-ID: In-Reply-To: <3f5e4116-54e6-9753-f925-ed4a9f6e3518@gmail.com> On Wed, May 17, 2023 at 10:05:51AM +0100, Phillip Wood wrote: >On 28/04/2023 09:35, Oswald Buddenhagen wrote: >> + } else if (skip_prefix(msg.subject, "Revert \"", &orig_subject)) { >> + if (skip_prefix(orig_subject, "Revert \"", &orig_subject)) { > >I think it is probably worth adding > > if (starts_with(orig_subject, "Revert \"")) > strbuf_addstr(&msgbuf, "Revert \""); > else > >here to make sure that we don't end up with a subject starting "Revert >\"Reapply \"Revert ...". > i can't follow you. how is the concern not covered by the subsequent comment? >> + /* >> + * This prevents the generation of somewhat unintuitive (even if >> + * not incorrect) 'Reapply "Revert "' titles from legacy double >> + * reverts. Fixing up deeper recursions is left to the user. >> + */ regards, ossi