|author||Russ Cox <firstname.lastname@example.org>||Fri Jan 08 11:05:45 2021 -0500|
|committer||Russ Cox <email@example.com>||Wed Jan 13 14:40:11 2021 +0000|
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 Reviewed-on: https://go-review.googlesource.com/c/review/+/282616 Trust: Russ Cox <firstname.lastname@example.org> Reviewed-by: Matthew Dempsky <email@example.com>
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
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.