aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/mail.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-01-07 12:26:06 -0500
committerRuss Cox <rsc@golang.org>2021-01-07 18:26:42 +0000
commit3f3690dc9cf1f7c0ddca72d1c5313be4022ece58 (patch)
treef302f9307c7019340957396f040613f2962e6417 /git-codereview/mail.go
parent541f6aec3b30c1bd064ea95cdaaf57f4e65bef4d (diff)
downloadgo-x-review-3f3690dc9cf1f7c0ddca72d1c5313be4022ece58.tar.xz
git-codereview: add a few more tests
Change-Id: I17ad065e8b4c1eb00cdd2f17af82be76bae4fc09 Reviewed-on: https://go-review.googlesource.com/c/review/+/279717 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'git-codereview/mail.go')
-rw-r--r--git-codereview/mail.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-codereview/mail.go b/git-codereview/mail.go
index e6cdb90..55ab8ed 100644
--- a/git-codereview/mail.go
+++ b/git-codereview/mail.go
@@ -6,7 +6,6 @@ package main
import (
"fmt"
- "os"
"regexp"
"sort"
"strings"
@@ -38,11 +37,12 @@ func cmdMail(args []string) {
"Usage: %s mail %s [-r reviewer,...] [-cc mail,...]\n"+
"\t[-f] [-diff] [-hashtag tag,...] [-nokeycheck] [-topic topic]\n"+
"\t[-trust] [-trybot] [-wip] [commit]\n", progName, globalFlags)
+ exit(2)
}
flags.Parse(args)
if len(flags.Args()) > 1 {
flags.Usage()
- os.Exit(2)
+ exit(2)
}
b := CurrentBranch()
@@ -221,7 +221,7 @@ func mailList(start, tag string, flagList string) string {
verbosef("expanded %s to %s", short[1:], long[1:])
}
if errors {
- die()
+ exit(1)
}
return spec
}