Another attempt at mailmap patches
v2 cover Another attempt at mailmap patches
From: Eric Blake <[email protected]>
Experimenting yet again, this time with an eye towards letting patchew attribute the patch to my name rather than my email. Also, by sending a series with more than one patch, I'm testing how authorship is preserved. My editor window does not see a body From: line, but hopefully the list archives do.
Andrey Drobyshev (1):
mailmap: Fix Andrey Drobyshev author email
Eric Blake (2):
maint: Tweak comments in mailmap regarding SPF
mailmap: Fix BALATON Zoltan author email
.mailmap | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
Signature · 1 line
2.41.0
PATCH v2 1/3 mailmap: Fix Andrey Drobyshev author email
From: Andrey Drobyshev <[email protected]>
This fixes authorship of commits 2848289168, 52b10c9c0c as the mailing list rewrote the "From:" field in the corresponding patches. See commit 3bd2608db7 ("maint: Add .mailmap entries for patches claiming list authorship") for explanation.
Message-ID: <[email protected]>
--- .mailmap | 1 + 1 file changed, 1 insertion(+)
.mailmap +1 -0
@@ -46,6 +46,7 @@ Ian McKellar <[email protected]> Ian McKellar via Qemu-devel <qemu-devel@nongnu Julia Suvorova <[email protected]> Julia Suvorova via Qemu-devel <[email protected]> Justin Terry (VM) <[email protected]> Justin Terry (VM) via Qemu-devel <[email protected]> Stefan Weil <[email protected]> Stefan Weil via <[email protected]> +Andrey Drobyshev <[email protected]> Andrey Drobyshev via <[email protected]> # Next, replace old addresses by a more recent one. Aleksandar Markovic <[email protected]> <[email protected]>
Signature · 1 line
2.41.0
PATCH v2 2/3 maint: Tweak comments in mailmap regarding SPF
In reply to Eric BlakeFrom: Eric Blake <[email protected]>
Documenting that we should not add new lines to work around SPF rewrites sounds foreboding; the intent is instead that new lines here are okay, but indicate a second problem elsewhere in our build process that we should also consider fixing at the same time, to keep the section from growing without bounds. While we have been doing that for qemu-devel for a while, we jut recently fixed that for qemu-block:
https://git.linaro.org/people/pmaydell/misc-scripts.git/commit/?id=f9a317392
Mentioning DMARC alongside SPF may also help people grep for this scenario, as well as documenting the 'git config' workaround that can be used by submitters to avoid the munging issue in the first place.
Note the subtelty: 'git commit' sets authorship information based on user.name and user.email (where name is usually unquoted); while 'git format-patch' includes a body 'From:' line only when sendemail.from is present but differs from authorship information. Hence the use of quotes in sendemail.from (not a semantic change to email, but enough of a difference to add the body 'From:').
---
Once again, sending this patch to the list with my git config temporarily changed. I used a command line:
git config sendemail.from '"Eric Blake" <eblakeWredhat.com>'
which turned into this in my .git/config:
[sendemail]
from = \"Eric Blake\" <[email protected]>
My editor window in 'git send-email' doesn't show the body from line, but hopefully the list archives do (that is, the addition of a body From appears to be a post-processing step done by git after my editor window closes but before the final mail is actually shoved out my MUA)
--- .mailmap | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
.mailmap +13 -1
@@ -40,7 +40,19 @@ Nick Hudson <[email protected]> [email protected] <[email protected]> # for the cvs2svn initialization commit e63c3dc74bf. # Next, translate a few commits where mailman rewrote the From: line due -# to strict SPF, although we prefer to avoid adding more entries like that. +# to strict SPF and DMARC. Usually, our build process should be flagging +# commits like these before maintainer merges; if you find the need to add +# a line here, please also report a bug against the part of the build +# process that let the mis-attribution slip through in the first place. +# +# If the mailing list munges your emails, use: +# git config sendemail.from '"Your Name" <[email protected]>' +# the use of "" in that line will differ from the typically unquoted +# 'git config user.name', which in turn is sufficient for 'git send-email' +# to add an extra From: line in the body of your email that takes +# precedence over any munged From: in the mail's headers. +# See https://lists.openembedded.org/g/openembedded-core/message/166515 +# and https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg06784.html Ed Swierk <[email protected]> Ed Swierk via Qemu-devel <[email protected]> Ian McKellar <[email protected]> Ian McKellar via Qemu-devel <[email protected]> Julia Suvorova <[email protected]> Julia Suvorova via Qemu-devel <[email protected]>
Signature · 1 line
2.41.0
Re: [PATCH v2 2/3] maint: Tweak comments in mailmap regarding SPF
Quoted 10 lines · Eric Blake
From: Eric Blake <[email protected]>
Documenting that we should not add new lines to work around SPF rewrites sounds foreboding; the intent is instead that new lines here are okay, but indicate a second problem elsewhere in our build process that we should also consider fixing at the same time, to keep the section from growing without bounds. While we have been doing that for qemu-devel for a while, we jut recently fixed that for qemu-block:
https://git.linaro.org/people/pmaydell/misc-scripts.git/commit/?id=f9a317392
Quoted 5 lines
Mentioning DMARC alongside SPF may also help people grep for this scenario, as well as documenting the 'git config' workaround that can be used by submitters to avoid the munging issue in the first place.
Note the subtelty: 'git commit' sets authorship information based on
subtlety
Quoted 2 lines
user.name and user.email (where name is usually unquoted); while 'git format-patch' includes a body 'From:' line only when sendemail.from is
s/format-patch/send-email/
The comments in the patch proper were correct, but the commit message needs a tweak. Based on my testing, 'git send-email --annotate' invokes the editor on the output of an implicit 'git format-patch', which does not have a body from line yet; it is the post-processing step of send-email that finally adds it.
Quoted 17 lines
present but differs from authorship information. Hence the use of quotes in sendemail.from (not a semantic change to email, but enough of a difference to add the body 'From:').
Fixes 3bd2608d ("maint: Add .mailmap entries for patches claiming list authorship")CC Andrey Drobyshev <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Eric Blake <[email protected]>---
Once again, sending this patch to the list with my git config temporarily changed. I used a command line:
git config sendemail.from '"Eric Blake" <eblakeWredhat.com>'
which turned into this in my .git/config:
[sendemail]
from = \"Eric Blake\" <[email protected]>
Quoted 4 lines
My editor window in 'git send-email' doesn't show the body from line, but hopefully the list archives do (that is, the addition of a body From appears to be a post-processing step done by git after my editor window closes but before the final mail is actually shoved out my MUA)
Yay, it appears to have worked!
https://patchew.org/search?q=project%3AQEMU+from%3ABlake
lists this series under 'Eric Blake' rather than '[email protected]'; and inspecting the mail headers shows that the "" were indeed present in the headers, while git inserted a body From because it was not identical to the actual commit authorship without quotes.
Quoted 32 lines
--- .mailmap | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-).mailmap +13
-1@@ -40,7 +40,19 @@ Nick Hudson <[email protected]> [email protected] <[email protected]> # for the cvs2svn initialization commit e63c3dc74bf. # Next, translate a few commits where mailman rewrote the From: line due -# to strict SPF, although we prefer to avoid adding more entries like that. +# to strict SPF and DMARC. Usually, our build process should be flagging +# commits like these before maintainer merges; if you find the need to add +# a line here, please also report a bug against the part of the build +# process that let the mis-attribution slip through in the first place. +# +# If the mailing list munges your emails, use: +# git config sendemail.from '"Your Name" <[email protected]>' +# the use of "" in that line will differ from the typically unquoted +# 'git config user.name', which in turn is sufficient for 'git send-email' +# to add an extra From: line in the body of your email that takes +# precedence over any munged From: in the mail's headers. +# See https://lists.openembedded.org/g/openembedded-core/message/166515 +# and https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg06784.html Ed Swierk <[email protected]> Ed Swierk via Qemu-devel <[email protected]> Ian McKellar <[email protected]> Ian McKellar via Qemu-devel <[email protected]> Julia Suvorova <[email protected]> Julia Suvorova via Qemu-devel <[email protected]>Signature · 1 line
2.41.0
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org
Re: [PATCH v2 2/3] maint: Tweak comments in mailmap regarding SPF
In reply to Eric BlakeQuoted 22 lines · Eric Blake
From: Eric Blake <[email protected]>
Documenting that we should not add new lines to work around SPF rewrites sounds foreboding; the intent is instead that new lines here are okay, but indicate a second problem elsewhere in our build process that we should also consider fixing at the same time, to keep the section from growing without bounds. While we have been doing that for qemu-devel for a while, we jut recently fixed that for qemu-block:
https://git.linaro.org/people/pmaydell/misc-scripts.git/commit/?id=f9a317392Mentioning DMARC alongside SPF may also help people grep for this scenario, as well as documenting the 'git config' workaround that can be used by submitters to avoid the munging issue in the first place.
Note the subtelty: 'git commit' sets authorship information based on user.name and user.email (where name is usually unquoted); while 'git format-patch' includes a body 'From:' line only when sendemail.from is present but differs from authorship information. Hence the use of quotes in sendemail.from (not a semantic change to email, but enough of a difference to add the body 'From:').
Quoted 5 lines
Fixes 3bd2608d ("maint: Add .mailmap entries for patches claiming list authorship")CC Andrey Drobyshev <[email protected]>Cc Peter Maydell <[email protected]>Signed-off-by Eric Blake <[email protected]>---
thanks
-- PMM
PATCH v2 3/3 mailmap: Fix BALATON Zoltan author email
In reply to Eric BlakeFrom: Eric Blake <[email protected]>
This fixes authorship of commits 5cbd51a5 and friends, where the qemu-ppc mailing list rewrote the "From:" field in the corresponding patches. See commit 3bd2608db7 ("maint: Add .mailmap entries for patches claiming list authorship") for explanation.
--- .mailmap | 1 + 1 file changed, 1 insertion(+)
.mailmap +1 -0
@@ -59,6 +59,7 @@ Julia Suvorova <[email protected]> Julia Suvorova via Qemu-devel <qemu-devel@nongnu Justin Terry (VM) <[email protected]> Justin Terry (VM) via Qemu-devel <[email protected]> Stefan Weil <[email protected]> Stefan Weil via <[email protected]> Andrey Drobyshev <[email protected]> Andrey Drobyshev via <[email protected]> +BALATON Zoltan <[email protected]> BALATON Zoltan via <[email protected]> # Next, replace old addresses by a more recent one. Aleksandar Markovic <[email protected]> <[email protected]>
Signature · 1 line
2.41.0