docs/devel: remove incorrect claim about git send-email
PATCH 1/1 docs/devel: remove incorrect claim about git send-email
While it's unclear to me what git send-email actually does with the -v2 parameter (it is not documented, but also not rejected), it does not add a v2 tag to the email's subject, which is what led to the mishap in [1].
[1]: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg00679.html
--- docs/devel/submitting-a-patch.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
docs/devel/submitting-a-patch.rst +1 -2
@@ -456,8 +456,7 @@ patch need not say "v1", just [PATCH] is sufficient.) For patch series, the version applies to the whole series -- even if you only change one patch, you resend the entire series and mark it as "v2". Don't try to track versions of different patches in the series separately. `git -format-patch <http://git-scm.com/docs/git-format-patch>`__ and `git -send-email <http://git-scm.com/docs/git-send-email>`__ both understand +format-patch <http://git-scm.com/docs/git-format-patch>`__ understands the ``-v2`` option to make this easier. Send each new revision as a new top-level thread, rather than burying it in-reply-to an earlier revision, as many reviewers are not looking inside deep threads for new
Signature · 1 line
2.36.2
Quoted 6 lines · Linus Heckemann
While it's unclear to me what git send-email actually does with the -v2 parameter (it is not documented, but also not rejected), it does not add a v2 tag to the email's subject, which is what led to the mishap in [1].
[1]: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg00679.html
It does for me!
Tested with:
git send-email -v2 --to [email protected] HEAD~
X-Mailer: git-send-email 2.37.1
Quoted 9 lines · Alyssa Ross
Quoted 6 lines · Linus Heckemann
While it's unclear to me what git send-email actually does with the -v2 parameter (it is not documented, but also not rejected), it does not add a v2 tag to the email's subject, which is what led to the mishap in [1].
[1]: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg00679.html
Quoted 7 lines
It does for me!
Tested with:
git send-email -v2 --to [email protected] HEAD~X-Mailer: git-send-email 2.37.1
I wouldn't be surprised if it only adds it when it's generating the patch though. Did you perhaps run git format-patch first to generate a patch file, and then use git send-email to send it?
Quoted 15 lines · Alyssa Ross
Quoted 13 lines · Alyssa Ross
Quoted 6 lines · Linus Heckemann
While it's unclear to me what git send-email actually does with the -v2 parameter (it is not documented, but also not rejected), it does not add a v2 tag to the email's subject, which is what led to the mishap in [1].
[1]: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg00679.html
It does for me!
Tested with:
Quoted 7 lines
Quoted 3 lines
git send-email -v2 --to [email protected] HEAD~X-Mailer: git-send-email 2.37.1
I wouldn't be surprised if it only adds it when it's generating the patch though. Did you perhaps run git format-patch first to generate a patch file, and then use git send-email to send it?
Yes! I didn't realise that git send-email can be used without the intermediate format-patch step. I guess it's a git bug that git send-email will silently ignore -v when used with a patch file. I'll have a look at fixing that.
Quoted 21 lines · Linus Heckemann
Quoted 19 lines · Alyssa Ross
Quoted 16 lines · Alyssa Ross
Quoted 6 lines · Linus Heckemann
While it's unclear to me what git send-email actually does with the -v2 parameter (it is not documented, but also not rejected), it does not add a v2 tag to the email's subject, which is what led to the mishap in [1].
[1]: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg00679.html
It does for me!
Tested with:
git send-email -v2 --to [email protected] HEAD~X-Mailer: git-send-email 2.37.1
Quoted 8 lines
Quoted 3 lines
I wouldn't be surprised if it only adds it when it's generating the patch though. Did you perhaps run git format-patch first to generate a patch file, and then use git send-email to send it?
Yes! I didn't realise that git send-email can be used without the intermediate format-patch step. I guess it's a git bug that git send-email will silently ignore -v when used with a patch file. I'll have a look at fixing that.
Yeah, that sounds like the best way to go. I think it'll swallow /any/ format-patch options when used that way. Would be nice if it warned.