From 536e5b7d89ec1359f1952fb24136f4f6dcc24b55 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Thu, 23 Jul 2020 13:11:30 -0700 Subject: [PATCH] Adding some basic send-email commands --- git/email.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/git/email.md b/git/email.md index facd08a..a1c7fc3 100644 --- a/git/email.md +++ b/git/email.md @@ -44,6 +44,25 @@ If you don't set your password here, you will be prompted for it when submitting a patch. If you wish to set it, the setting name is `smtppass`. For more info on git config options, see `git help config`. +## Submitting patches + +Once you've got some commits ready, you can submit them to the configured +mailing list. You simply run the following: + + git send-email HEAD^ + +The list will evaluate and accept it or provide feedback. If you need to make +a change do so and amend your last commit with `git commit --amend`. Then you +can resubmit version 2 of your patch. + + git send-email --annotate -v2 HEAD^ + +You can iterate each version of your patch the same way. Use `-v3`, `-v4`, etc. +You probably noticed the `--annotate` flag, this lets you add some extra +information about the patch without it being added to the commit history. + +Please see the tutorial above for more in-depth info on how this works. + # For maintainers ## Tell people how to contribute -- 2.43.0