| commit | f93f1c24ee8952fe52f4ef53e32cb688449ac13e | [log] [tgz] |
|---|---|---|
| author | Wyatt Allen <wyatta@google.com> | Thu May 05 16:53:38 2016 -0700 |
| committer | Wyatt Allen <wyatta@google.com> | Mon May 09 15:56:23 2016 -0700 |
| tree | 4a34c0fbccdbad0149e6963ba4c58492665fc69f | |
| parent | 6ed795da42025b8c568639e95918201e5588ca63 [diff] |
Add toggle to PolyGerrit diff view to switch between diff styles The gr-diff element was already capable of rendering diffs in either side-by-side or unified style, but was configured by default to use side-by-side. The GWT diff UI included an icon button toggle to switch between these two styles above and to the right of the diff near the "Diff View Preferences" button. This change introduces a selector in the PolyGerrit UI to allow similar switching behavior. Previously, the diff mode was encoded as a private property of the gr-diff element. Now that the switcher is introduced at the same level as the "Diff View Preferences" button (one level up from the gr-diff element) it is changed to be a public property of the element so that it can be changed through the parent view (in this case the gr-diff-view element). A dropdown is added to the gr-diff-view based in style on the gr-patch-range-select element (which plays a similar role). This dropdown has options for either of the two diff modes and controls the diff display through a property on the view. The view gets a new, computed property called _diffMode which encodes which diff state should be displayed based on the changeViewState and the user's preferences. The user's choice of diff view is persisted across diff views, but is reverted to the preference when the change view is visited. A test is added to the gr-diff-view element. Bug: Issue 3909 Change-Id: I00d93500f8d210394acc9c8f3398c9406ae74276
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 IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit
cd gerrit && buck 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>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.