Re: [patch 00/10] parport: ieee1284 fixes and cleanups

From: Dmitry Torokhov
Date: Wed Sep 07 2005 - 22:08:16 EST


On Wednesday 07 September 2005 06:50, Andrew Morton wrote:
> Marko Kohtala <marko.kohtala@xxxxxxxxx> wrote:
> >
> > > You just sent ten patches, all with the same name. This causes me grief
> > > (See http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt, section 2a).
> >
> > I used "quilt mail" to send those patches and it seems it requires
> > some additional trick I did not notice to make the patches have
> > different subjects.
>
> I complained to the quilt guys about that and they did make a move to fix
> it, but I recall not being very happy with the proposal. Anyway, make sure
> you have the latest version and check the documentation - it's in there
> somewhere.
>
> As a last resort, put the title into the first line of the changelog and
> I'll cut-n-paste it.
>

I have the following in my .quiltrc

quilt_mail_patch_filter() {
local x=$(cat)
echo "$x" \
| sed -n \
-e 's/^\(To\|Cc\):/Recipient-\1:/ip' \
-e 's/^Subject:/Replace-Subject:/p' \
-e '/^\*\*\*\|---/q'
echo
# Discard the patch header, and pass on the rest
echo "$x" | awk '
!seen_from && (/^From: /) { print $0 "\n" ; seen_from = 1 }
!in_body && (/^[-A-Za-z]+:/) { next }
!in_body && (/^$/) { in_body = 1 ; next }
{ print }
'
}

And I have my patches in the following form:

Subject: mail subject
From: <someone if not I, git uses it>

<area (Usually Input)>: Short patch description

Decsription

Signed-off-by: X XX
---
<patch>

Then quilt mail command seems to do the right thing.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/