aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/doc.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-13 18:55:18 -0500
committerRuss Cox <rsc@golang.org>2015-01-14 04:14:12 +0000
commite60b08421f15d8e7ec1c00d52dec8e48f029ea4a (patch)
treec73344b02d89648e0bc5685c35b817b715bbf677 /git-codereview/doc.go
parent8c348adcde5327dca3eca9c5e6cf61f7118493cc (diff)
downloadgo-x-review-e60b08421f15d8e7ec1c00d52dec8e48f029ea4a.tar.xz
git-codereview: add branchpoint command, for scripts
The most important use of this is git rebase -i $(git codereview branchpoint) in multichange clients. Change-Id: I6bdbc02db2e2823e837159efec20ad5c9046bcd5 Reviewed-on: https://go-review.googlesource.com/2783 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'git-codereview/doc.go')
-rw-r--r--git-codereview/doc.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/git-codereview/doc.go b/git-codereview/doc.go
index 566b82a..03eae19 100644
--- a/git-codereview/doc.go
+++ b/git-codereview/doc.go
@@ -43,6 +43,15 @@ The -n flag prints all commands that would be run, but does not run them.
Descriptions of each command follow.
+Branchpoint
+
+ git codereview branchpoint
+
+The branchpoint command prints the commit hash of the most recent change
+on the current branch that is shared with the Gerrit server. This is the point
+where local work branched from the published tree. The command is intended
+mainly for use in scripts. For example, "git rebase -i $(git codereview branchpoint)".
+
Change
The change command creates and moves between Git branches and maintains the