summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-05-30 02:16:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-30 02:16:43 (GMT)
commit07d4c760056b930246d5db1545c32d3cecd9d257 (patch)
tree115195d11469f1e20f8be19643fd6b7e748e392b /Documentation
parentc05e1231dac6d7582c370a57464c46950ef70a99 (diff)
parent6489660b4bba7456fac0d0a41f5d6295c5900c5f (diff)
downloadgit-07d4c760056b930246d5db1545c32d3cecd9d257.zip
git-07d4c760056b930246d5db1545c32d3cecd9d257.tar.gz
git-07d4c760056b930246d5db1545c32d3cecd9d257.tar.bz2
Merge branch 'jt/send-email-validate-hook'
"git send-email" learned to run sendemail-validate hook to inspect and reject a message before sending it out. * jt/send-email-validate-hook: send-email: support validate hook
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-send-email.txt1
-rw-r--r--Documentation/githooks.txt8
2 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 9d66166..bb23b02 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -377,6 +377,7 @@ have been specified, in which case default to 'compose'.
Currently, validation means the following:
+
--
+ * Invoke the sendemail-validate hook if present (see linkgit:githooks[5]).
* Warn of patches that contain lines longer than 998 characters; this
is due to SMTP limits as described by http://www.ietf.org/rfc/rfc2821.txt.
--
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 706091a..b2514f4 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -447,6 +447,14 @@ rebase::
The commits are guaranteed to be listed in the order that they were
processed by rebase.
+sendemail-validate
+~~~~~~~~~~~~~~~~~~
+
+This hook is invoked by 'git send-email'. It takes a single parameter,
+the name of the file that holds the e-mail to be sent. Exiting with a
+non-zero status causes 'git send-email' to abort before sending any
+e-mails.
+
GIT
---