git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] send-email: expose header information to git-send-email's sendemail-validate hook
@ 2023-01-17  1:39 Strawbridge, Michael
  2023-01-17  1:39 ` [PATCH v6 1/2] send-email: refactor header generation functions Strawbridge, Michael
  2023-01-17  1:39 ` [PATCH v6 2/2] send-email: expose header information to git-send-email's sendemail-validate hook Strawbridge, Michael
  0 siblings, 2 replies; 13+ messages in thread
From: Strawbridge, Michael @ 2023-01-17  1:39 UTC (permalink / raw)
  To: git; +Cc: Strawbridge, Michael

Thank you for all the great feedback!  At your suggestion I improved the
test for the header argument and the documentation.

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 | 29 ++++++++++++--
 git-send-email.perl        | 80 +++++++++++++++++++++++++-------------
 t/t9001-send-email.sh      | 47 +++++++++++++++++++++-
 3 files changed, 122 insertions(+), 34 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH v5 0/2] send-email: expose header information to git-send-email's sendemail-validate hook
@ 2023-01-17  1:37 Strawbridge, Michael
  2023-01-17  1:37 ` [PATCH v6 " Strawbridge, Michael
  0 siblings, 1 reply; 13+ messages in thread
From: Strawbridge, Michael @ 2023-01-17  1:37 UTC (permalink / raw)
  To: git; +Cc: Strawbridge, Michael

Hi Junio,

I very much appreciate the feedback and believe I have changed things to match.

To answer your earlier question, the hook doesn't need to support multiple header capitalizations (ie. only Cc is passed). However, it does need to understand that lines beginning with whitespace belong to the previous header.  The header information follows the same format as the confirmation given at the end of send-email.

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 | 17 ++++++--
 git-send-email.perl        | 80 +++++++++++++++++++++++++-------------
 t/t9001-send-email.sh      | 29 +++++++++++++-
 3 files changed, 92 insertions(+), 34 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-01-18 20:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17  1:39 [PATCH v6 0/2] send-email: expose header information to git-send-email's sendemail-validate hook Strawbridge, Michael
2023-01-17  1:39 ` [PATCH v6 1/2] send-email: refactor header generation functions Strawbridge, Michael
2023-01-17  3:38   ` Luben Tuikov
2023-01-17  4:13   ` Luben Tuikov
2023-01-17  1:39 ` [PATCH v6 2/2] send-email: expose header information to git-send-email's sendemail-validate hook Strawbridge, Michael
2023-01-17  4:35   ` Luben Tuikov
2023-01-17  5:06   ` Luben Tuikov
2023-01-17  7:31     ` Junio C Hamano
2023-01-18  8:31       ` Luben Tuikov
2023-01-18 16:27         ` Junio C Hamano
2023-01-18 16:35           ` Luben Tuikov
2023-01-18 20:44             ` Michael Strawbridge
  -- strict thread matches above, loose matches on Subject: below --
2023-01-17  1:37 [PATCH v5 0/2] " Strawbridge, Michael
2023-01-17  1:37 ` [PATCH v6 " Strawbridge, Michael

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).