Re: [PATCH v2] sequencer: beautify subject of reverts of reverts
- From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
- Date
- May 17, 2023, 10:00 UTC
- Message-ID
- <ZGSlqAPwaLhgWm6v@ugly>
- In-Reply-To
- <3f5e4116-54e6-9753-f925-ed4a9f6e3518@gmail.com>
On Wed, May 17, 2023 at 10:05:51AM +0100, Phillip Wood wrote:
Show 13 quoted lines
>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?
Show 5 quoted lines
>> + /* >> + * 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