commit | bc5a6b70306f5512d03ea7ddb2da996887092555 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Fri Jan 08 11:05:45 2021 -0500 |
committer | Russ Cox <rsc@golang.org> | Wed Jan 13 09:36:16 2021 -0500 |
tree | 5a15f56c8e482c8a781ffc2155b5c72a1111d72b | |
parent | ee4cb9c9253023732a4f25d671cc51adc05b0648 [diff] |
git-codereview: clean up detached HEAD mode Long ago I decided to return origin/HEAD from b.OriginBranch in detached HEAD mode, thinking it would cause obvious failures. But the joke was on me - origin/HEAD is a real thing in git, and HEAD tracking origin/HEAD is not the right answer on dev branches. Now that each branch's codereview.cfg typically has the branch info we need, we can use that in detached HEAD mode to be able to provide useful displays in commands like "git pending". And we can be careful not to do that when we don't know the actual branch. This commit cleans all that up. Change-Id: I0e59bcb6f9b61e0cdce7a27299b7f29fef8e7048
The git-codereview tool is a command-line tool for working with Gerrit.
The easiest way to install is to run go get -u golang.org/x/review/git-codereview
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/review
.
Run git codereview hooks
to install Gerrit hooks for your git repository.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the review repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/review:” in the subject line, so it is easy to find.