diff options
| author | Paul Jolly <paul@myitcv.io> | 2021-07-15 10:29:06 +0100 |
|---|---|---|
| committer | Paul Jolly <paul@myitcv.org.uk> | 2021-07-29 10:11:46 +0000 |
| commit | 2e4fd9a232c3368afeca71043fd7538ed11c681c (patch) | |
| tree | df8555462f594cdf1855e9930d23858dab800d83 /git-codereview/doc.go | |
| parent | 59af8024e2991b2377085f37062acf68ece50ced (diff) | |
| download | go-x-review-2e4fd9a232c3368afeca71043fd7538ed11c681c.tar.xz | |
git-codereview: add -s option for change
Some projects (CUE, https://cuelang.org, is one such example) use the
Developer Certificate of Origin (https://developercertificate.org) as an
alternative to a CLA. For such projects, all commit messages must
contain the Signed-off-by trailer, with an email address that matches
the commit author. This requires the -s flag to be passed to git commit.
This change adds a -s flag to git-codereview's change command, which is
then simply passed through to git commit.
Change-Id: I6aeac37a1bcdc6e260ae822d3a03117fb87f846f
Reviewed-on: https://go-review.googlesource.com/c/review/+/334750
Trust: Paul Jolly <paul@myitcv.org.uk>
Run-TryBot: Paul Jolly <paul@myitcv.org.uk>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'git-codereview/doc.go')
| -rw-r--r-- | git-codereview/doc.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-codereview/doc.go b/git-codereview/doc.go index 2b1af88..a74d7d4 100644 --- a/git-codereview/doc.go +++ b/git-codereview/doc.go @@ -157,6 +157,9 @@ option is only useful when creating commits (e.g. if there are unstaged changes). If a commit already exists, it is overwritten. If -q is also present, -q will be ignored. +The -s option adds a Signed-off-by trailer at the end of the commit message; +it is equivalent to the 'git commit' -s option. + As a special case, if branchname is a decimal CL number, such as 987, the change command downloads the latest patch set of that CL from the server and switches to it. A specific patch set P can be requested by adding /P: 987.2 for patch set 2 of CL 987. |
