commit | ecaf9b075c9797a1cf9e17d47f9980e5a408e9bd | [log] [tgz] |
---|---|---|
author | Michael Zhou <zhoumotongxue008@gmail.com> | Tue Apr 26 03:35:07 2016 -0400 |
committer | Michael Zhou <zhoumotongxue008@gmail.com> | Wed Apr 27 03:05:00 2016 -0400 |
tree | d527c22760322eafeaf7d8dd033d3b671cc33957 | |
parent | 551ad0c20df09d2b2d31a0dcf265460967169b35 [diff] |
EditScreen: Show the base version of the file in a CodeMirror merge view This adds a merge view to the inline editing screen so that users can diff against the patch set the change edit is based on while editing. This new functionality makes use of CodeMirror's merge view addon, which requires Google's diff-match-patch library to be loaded. The library implements an algorithm based on the Myers diff in JavaScript on the client side, so there is no extra usage of Gerrit's DiffApi. The minified diff-match-patch library is bundled with CodeMirror's merge view addon during the build process. By default, the merge view is disabled. This can be changed via EditPreferencesBox. Also added a checkbox to the EditScreen header to toggle the view. The loading of the content of the base version is lazy - it is only loaded when the merge view is actually used. The documentation and tutorial on this new feature will be added in later changes. Screenshot: https://i.imgur.com/uNMNzjM.png Change-Id: I5eb4af9b67bbfcb0b149965b3c818c1f6118e6de
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.