diff options
| author | Jean de Klerk <deklerk@google.com> | 2018-04-17 20:53:24 -0700 |
|---|---|---|
| committer | Yury Smolsky <yury@smolsky.by> | 2018-11-08 09:10:10 +0000 |
| commit | 22b85151af96692018cffaacf6156c88d2b0c933 (patch) | |
| tree | e665a93fb59bfa4ec5985a82a9d6b39cbf4c33f0 /git-codereview/review.go | |
| parent | 5745d819bd5fea5cbfb6ef4886a39b7f814c14db (diff) | |
| download | go-x-review-22b85151af96692018cffaacf6156c88d2b0c933.tar.xz | |
git-codereview: add -m option
The -m option allows a user to specify an inline commit
message. This is useful for a few reasons; primary among
them are the ability to easily automate a `git change`
flow (e.g. in a CI/CD workflow) and the ease of creating
one-liner commits (e.g. "regen protos").
Fixes golang/go#24912
Change-Id: Ie06886c74552ec615623c2faac285a1896bdac06
Reviewed-on: https://go-review.googlesource.com/c/107625
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Yury Smolsky <yury@smolsky.by>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'git-codereview/review.go')
| -rw-r--r-- | git-codereview/review.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-codereview/review.go b/git-codereview/review.go index a60e548..147733f 100644 --- a/git-codereview/review.go +++ b/git-codereview/review.go @@ -63,6 +63,8 @@ Available commands: change's commit message. If -a is specified, automatically add any unstaged changes in tracked files during commit. + If -m is specified and a message given, a commit is created + and the editor prompt is skipped. change NNNN[/PP] Checkout the commit corresponding to CL number NNNN and |
