aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/doc.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-11-09 22:27:37 -0500
committerRuss Cox <rsc@golang.org>2017-11-16 01:36:40 +0000
commit0d52c016f0bb80623e0ce00bf4e92981bacf862e (patch)
treed65021e2f934074a9c1fc8a49e4bfaa20d781c27 /git-codereview/doc.go
parent69da225aa6e9f439011c7458bbbddd52b133aea9 (diff)
downloadgo-x-review-0d52c016f0bb80623e0ce00bf4e92981bacf862e.tar.xz
git-codereview: add support for DΟ NΟT MAIL
Also create a local DΟ NΟT SUBMIT check, although the Gerrit server is also taking care of that. While we're here, make fixup! and squash! commits non-mailable as well. (In the all caps text above the big Os are really Omicrons. Otherwise the CL would not be mailable or submittable.) Change-Id: Id1a9806b0d395d1a0bfc50ed7d7d22c64a48a2f1 Reviewed-on: https://go-review.googlesource.com/76877 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'git-codereview/doc.go')
-rw-r--r--git-codereview/doc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-codereview/doc.go b/git-codereview/doc.go
index d6a5576..a7b04b5 100644
--- a/git-codereview/doc.go
+++ b/git-codereview/doc.go
@@ -212,6 +212,10 @@ If there are multiple pending commits, the revision argument is mandatory.
If no revision is specified, the mail command prints a short summary of
the pending commits for use in deciding which to mail.
+If any commit that would be pushed to the server contains the text
+"DO NOT MAIL" (case insensitive) in its commit message, the mail command
+will refuse to send the commit to the server.
+
Pending
The pending command prints to standard output the status of all pending changes