Re: [RFC PATCH 1/1] docs: submitting-patches: Add Sponsored-by tag to give credits to who sponsored the patch

From: Matthew Wilcox
Date: Mon Aug 21 2023 - 08:57:22 EST


On Mon, Aug 21, 2023 at 03:15:43PM +0300, Jani Nikula wrote:
> On Mon, 21 Aug 2023, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> > On Mon, Aug 21, 2023 at 11:29:27AM +0300, Jani Nikula wrote:
> >> On Fri, 18 Aug 2023, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> >> > but you might have (eg)
> >> >
> >> > Laurent Pinchard (Coca-Cola) <laurent.pinchart@xxxxxxxxxxxxxxxx>
> >> >
> >> > and then when working for another sponsor:
> >> >
> >> > Laurent Pinchard (Ford) <laurent.pinchart@xxxxxxxxxxxxxxxx>
> >>
> >> Just an observation, git shortlog -s/-se groups/distinguishes,
> >> respectively, the author and sponsor in Laurent's approach. Not so with
> >> Matthew's approach.
> >
> > Hm?
> >
> > $ git shortlog -s next-20230817..
> > 1 Matthew Wilcox (Novartis)
> > 25 Matthew Wilcox (Oracle)
> >
> > $ git shortlog -se next-20230817..
> > 1 Matthew Wilcox (Novartis) <willy@xxxxxxxxxxxxx>
> > 25 Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
>
> $ git shortlog v6.4.. -s --author="Laurent Pinchart"
> 12 Laurent Pinchart
>
> $ git shortlog v6.4.. -se --author="Laurent Pinchart"
> 2 Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
> 10 Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>

I must not be understanding your point correctly.

$ git shortlog v6.4.. -s --author="Matthew Wilcox"
7 Matthew Wilcox
1 Matthew Wilcox (Novartis)
123 Matthew Wilcox (Oracle)

That seems to me like it successfully distinguishes my fake commit on
behalf of Novartis (who I haven't actually worked for since 1997) from
my real commits on behalf of Oracle. It also shows a few places where
my commits weren't attributed to Oracle (I think this happens when I
send patches using mutt instead of git-send-email)