Peter Maydell <peter.mayd...@linaro.org> writes:

> On 2 May 2013 16:30, Paolo Bonzini <pbonz...@redhat.com> wrote:
>> /me changes his scripts...
>>
>> -s/PATCH/PULL/ if (/PATCH 0+\\//);
>> +s/PATCH/PULL/ if (/^Subject:/);
>>
>> Yes, Perl...
>
> Heh, I use sed for this bit:
> sed -i -e 's/^Subject: \[PULL\(.*\)].*/Subject: [PULL\1]
> '"$BRANCHPFX"' queue/;/^$/q' "$COVERLETTER"

You can also just do git format-patch --subject-prefix=PULL and avoid
any fixups...

Regards,

Anthony Liguori

>
> (I really must put my random scripts into git.)
>
> -- PMM

Reply via email to