From 0d52c016f0bb80623e0ce00bf4e92981bacf862e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 9 Nov 2017 22:27:37 -0500 Subject: git-codereview: add support for DΟ NΟT MAIL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Austin Clements TryBot-Result: Gobot Gobot --- git-codereview/doc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git-codereview/doc.go') 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 -- cgit v1.3