diff options
| author | Russ Cox <rsc@golang.org> | 2021-01-07 12:26:06 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-01-07 18:26:51 +0000 |
| commit | c4d5d8fb54f168c51827b4901b8537fca9a2abc6 (patch) | |
| tree | 8fc73edbe5115d1f2917e583050aad5ae638972c /git-codereview/doc.go | |
| parent | 5617b8658c4ff7af5665cf0fd4bc5448d4ada7b9 (diff) | |
| download | go-x-review-c4d5d8fb54f168c51827b4901b8537fca9a2abc6.tar.xz | |
git-codereview: make git change handle GitHub PRs
Change-Id: Iab0417d14a29dce1a43f30f1f357d3f71dfdb51f
Reviewed-on: https://go-review.googlesource.com/c/review/+/279721
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'git-codereview/doc.go')
| -rw-r--r-- | git-codereview/doc.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/git-codereview/doc.go b/git-codereview/doc.go index 4232869..a72b6db 100644 --- a/git-codereview/doc.go +++ b/git-codereview/doc.go @@ -154,10 +154,13 @@ The -m option specifies a commit message and skips the editor prompt. This 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. -997As a special case, if branchname is a decimal CL number, such as 987, the change + +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 can be requested by adding a decimal point: 987.2 for patch set 2 -of CL 987. +A specific patch set P can be requested by adding /P: 987.2 for patch set 2 of CL 987. +If the origin server is GitHub instead of Gerrit, then the number is +treated a GitHub pull request number, and the change command downloads the latest +version of that pull request. In this case, the /P suffix is disallowed. Gofmt |
