commit | 80d34f49c2da732013a06f35c6560cac9fa59cad | [log] [tgz] |
---|---|---|
author | Dhruv Srivastava <dhruvsri@google.com> | Mon Oct 18 16:45:02 2021 +0200 |
committer | Dhruv Srivastava <dhruvsri@google.com> | Mon Oct 25 15:15:31 2021 +0200 |
tree | 61dca58b476c3e726e4747e047820c42a3c812b3 | |
parent | 4deb19a03eeb0bec7b6ed5eb5eb8bdf3bc7f7235 [diff] |
Move diffViewMode into model Moving the diffViewMode property to the model allows any changes made in the change page to the diffMode to reflect to the diff view retained in the background. Currently Gerrit has this feature where if the screen width is small then we want to show Unified diff instead of Side by Side diff to the user. This is done by updating a default_diff_view property inside the getPreferences() API call in gr-rest-api-interface. The implementation runs into several issues which are fixed by this change. 1. The updated diff is only shown to the user if they reload the page by requesting the preferences again. 2. Once the screen is narrowed and then expanded again, the diff view mode remains Unified instead of reverting back to Side by Side(If the user set that initially). There was also the ability to temporarily change the diff mode until the next reload but that has been removed for simplicity and now any changes to the diff mode are reflected to the preference setting. Change-Id: Ice95ed03faa5f05eaf650b06ba945206ca39cf6b
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.