Subject: Re: [PATCH v2] sequencer: beautify subject of reverts of reverts

From: Oswald Buddenhagen <[email-masked]>
Date: Wed, 17 May 2023 12:00:08 +0200

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