diff options
Diffstat (limited to 'git-codereview/mail.go')
| -rw-r--r-- | git-codereview/mail.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/git-codereview/mail.go b/git-codereview/mail.go index 52ef44a..1fe35e5 100644 --- a/git-codereview/mail.go +++ b/git-codereview/mail.go @@ -21,6 +21,7 @@ func cmdMail(args []string) { wip = flags.Bool("wip", false, "set the status of a change to Work-in-Progress") topic = flags.String("topic", "", "set Gerrit topic") trybot = flags.Bool("trybot", false, "run trybots on the uploaded CLs") + trust = flags.Bool("trust", false, "add a Trust+1 vote to the CL") rList = new(stringList) // installed below ccList = new(stringList) // installed below tagList = new(stringList) // installed below @@ -31,7 +32,7 @@ func cmdMail(args []string) { flags.Var(tagList, "hashtag", "comma-separated list of tags to set") flags.Usage = func() { - fmt.Fprintf(stderr(), "Usage: %s mail %s [-r reviewer,...] [-cc mail,...] [-nokeycheck] [-topic topic] [-trybot] [-wip] [commit]\n", os.Args[0], globalFlags) + fmt.Fprintf(stderr(), "Usage: %s mail %s [-r reviewer,...] [-cc mail,...] [-f] [-diff] [-hashtag tag,...] [-nokeycheck] [-topic topic] [-trust] [-trybot] [-wip] [commit]\n", os.Args[0], globalFlags) } flags.Parse(args) if len(flags.Args()) > 1 { @@ -45,7 +46,7 @@ func cmdMail(args []string) { if len(flags.Args()) == 1 { c = b.CommitByRev("mail", flags.Arg(0)) } else { - c = b.DefaultCommit("mail", "must specify commit on command line or use mail HEAD for everything") + c = b.DefaultCommit("mail", "must specify commit on command line; use HEAD to mail all pending changes") } if *diff { @@ -133,6 +134,10 @@ func cmdMail(args []string) { refSpec += start + "topic=" + *topic start = "," } + if *trust { + refSpec += start + "l=Trust" + start = "," + } if *trybot { refSpec += start + "l=Run-TryBot" start = "," |
