commit | 8cab93302d9c35316d691e848b67e687a68182b5 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Tue Aug 18 14:42:44 2020 -0700 |
committer | Peter Collingbourne <pcc@google.com> | Wed Sep 02 11:59:23 2020 -0700 |
tree | 93397c64432bac5cc842f1e2b3a4f608f79839da | |
parent | 8f32d8238a1cbfe930681f5a4e06ca0fb388e2cf [diff] |
Allow a Link trailer to be used as an alternative change ID trailer In some projects it may be desirable for the trailer to contain a link to the Gerrit review page so that it is convenient to access the review page starting from the commit message. The Link trailer is a standard trailer used for inserting links in the commit message, which has been adopted by the Linux kernel among other projects. For example, the Linux kernel has a policy about linking to the mailing list archive with Link trailers: https://www.kernel.org/doc/html/latest/maintainer/configure-git.html#creating-commit-links-to-lore-kernel-org This change makes Gerrit interoperate well with the Link trailer. Specifically, it teaches the Gerrit server to recognize trailers of the form: Link: https://gerrit-review.googlesource.com/id/I78e884a944cedb5144f661a057e4829c8f84e933 as well as the existing Change-Id trailer, teaches the server to recognize /id/ as a search prefix for change IDs and modifies the commit-msg hook to optionally add a Link trailer (using a server URL provided in the property gerrit.reviewUrl) instead of the Change-Id trailer. Change-Id: I78e884a944cedb5144f661a057e4829c8f84e933
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.