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