Patchwork to require git-send-email formatted patches?
Damien Lespiau
damien.lespiau at intel.com
Thu Nov 12 03:59:17 PST 2015
On Wed, Nov 11, 2015 at 02:01:38PM +0200, Pekka Paalanen wrote:
> On Tue, 10 Nov 2015 11:35:35 +0000
> Damien Lespiau <damien.lespiau at intel.com> wrote:
>
> > Something else I noticed on this thead:
> >
> > In the reply 20151019013047.GA8175 at jelly.local from Peter, there's a
> > diff put there for reference, picked up as a patch by patchwork:
> >
> > http://patchwork.freedesktop.org/patch/msgid/20151019013047.GA8175@jelly.local
> >
> > If you want patchwork to not consider those kind of diffs as real
> > patches, there's a per-project option I can activate: only consider git
> > send-email mails as potential patches.
>
> Hi all,
>
> I think we could turn that on. What do others think?
>
> How is a git-send-email patch recognized? Would we miss patches that
> are formatted with git-format-patch but sent by other means than
> git-send-email?
git send-email patches are recognized by their X-Mailer header:
is_git_send_email = mail.get('X-Mailer', '').startswith('git-send-email')
It does mean any diff inlined in an email will be skipped if sent
"manually", even it they actually are from git format-patch. I took some
care to not cull git format-patch files sent as attachments though, so
those should still work with that option enabled.
HTH,
--
Damien
More information about the wayland-devel
mailing list