git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Strawbridge <michael.strawbridge@amd.com>
To: <git@vger.kernel.org>
Cc: <michael.strawbridge@amd.com>
Subject: [PATCH v8 0/2] send-email: expose header information to git-send-email's sendemail-validate hook
Date: Wed, 18 Jan 2023 11:32:01 -0500	[thread overview]
Message-ID: <20230118163203.488652-1-michael.strawbridge@amd.com> (raw)

This patch version addresses:
- extra test for number of arguments in the header t9001 test
- removed use of envelope in the documentation
- re-arranged the validation loop and surrounding code to be closer to
  the other code not in functions
- made a note in the commit message that the moving of validation later
  can have some difference in stdout compared to before but actual email
functionality should be ok

Hopefully this looks better.

Michael Strawbridge (2):
  send-email: refactor header generation functions
  send-email: expose header information to git-send-email's
    sendemail-validate hook

 Documentation/githooks.txt |  27 +++++++--
 git-send-email.perl        | 109 ++++++++++++++++++++++---------------
 t/t9001-send-email.sh      |  27 ++++++++-
 3 files changed, 114 insertions(+), 49 deletions(-)

-- 
2.34.1


             reply	other threads:[~2023-01-18 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 16:32 Michael Strawbridge [this message]
2023-01-18 16:32 ` [PATCH v8 1/2] send-email: refactor header generation functions Michael Strawbridge
2023-01-18 16:32 ` [PATCH v8 2/2] send-email: expose header information to git-send-email's sendemail-validate hook Michael Strawbridge
2023-01-18 23:12   ` Ævar Arnfjörð Bjarmason
2023-01-19  1:05     ` Michael Strawbridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230118163203.488652-1-michael.strawbridge@amd.com \
    --to=michael.strawbridge@amd.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).