Fix ArrayIndexOutOfBoundsException on intraline diff again

When using intraline diffs with show line endings, a user could
encounter an ArrayIndexOutOfBoundsException when going from a file
with just newlines to carriage returns and newlines.  This only
impacts the legacy change screen, however.  Since the newline
may be in a span element itself, it looks like we have some more
things to check.

Change-Id: I65443f487be60a949346398a487de38eb88e75dd
Remove unused constructor

Change-Id: Idc113534b034069d3f92aae074677ebac31a722c
Merge "Fix ArrayIndexOutOfBoundsException on intraline diff again" into stable-2.8
Support committing Lucene writes within a fixed interval

The ramBufferSize and maxBufferedDocs options control how often the
writer is flushed, but this does not fsync files on disk and thus
might not be permanent, particularly in a machine under heavy load.

Add an option commitWithin to bound the time between calls to commit.
Give each sub-index its own executor to flush and commit outstanding
changes. Non-positive periods trigger commit on every write.

Change-Id: Idfaf17a1eeb9240f25ee1fc842bdf4f8c9b873c3
Simplify NativeString constructor

The only usage of T.get() method was removed in
I9468383bb4b63bc0ede4cdb33a1695db2e6f68e9. Remove it as it is not
used any more.

Change-Id: I3042b488fd107c6f5a67cad783faed086a3bd2ab
Introduce Gerrit gwtui common project

The new project hosts code that is reused between Gerrit core and GWT
based plugins.

Change-Id: I1a6e4352f681266c2ce664881a64d35bd2639299
Merge "Remove unused constructor"
Move merge strategy classes to their own subpackage

Move the classes implementing the merge strategies into their
own separate subpackage.

Make members of CodeReviewCommit private and add getter/setter
methods.

Change-Id: Ice2faea73bcf86ec7edbdf69e4ac6f458d41757d
Merge branch 'stable-2.8'

* stable-2.8:
  Support committing Lucene writes within a fixed interval
  Fix ArrayIndexOutOfBoundsException on intraline diff again

Conflicts:
	gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneChangeIndex.java

Change-Id: I7b93d81d8e5c53615ef1684b653d6fa9e941d935
Merge "Simplify NativeString constructor"
Release Notes: Set max page width to 55em

This makes the release notes look a bit nicer, and easier to
read, on wide screens.

Note that the max-width attribute is not yet supported in
asciidoctor, so we can't set this for the main documentation.

The release notes are still generated with asciidoc.

Change-Id: Ide83ca20dc61ede16080d017b22435360928877f
Fix a typo in the 2.8 release notes

Change-Id: Id3d031ca7cdc337b3a666c63cb2f4d16a7d646a5
Update the 2.8.2 release notes with recently merged fixes

Change-Id: Id8796338895121472a3b7a4c48646fe086f34c1f
Merge branch 'stable-2.8'

* stable-2.8:
  Update the 2.8.2 release notes with recently merged fixes
  Fix a typo in the 2.8 release notes
  Release Notes: Set max page width to 55em

Change-Id: Ic4a2c34a9dbe2210e1056c48ce5d09828c531f9c
Merge "Move merge strategy classes to their own subpackage"
Merge "Introduce Gerrit gwtui common project"
Remove double border around code snippets in documentation

Bug: issue 2480
Change-Id: I8aa10bf28f5881ce5d073dfd214e3f6db796177b
gerrit-plugin-api: Add dep on new gerrit-plugin-gwtui package

Change-Id: Ie243f13ace2f9d526b49a70c4a52fbab0fe9bd40
AbstractDaemonTest: s/ammend/amend

Change-Id: Ic2f926aaba799548ef3ddd35924714a4c6ac8157
Update JGit to 3.2.0.201312181205-r.61-gf2f24a3

This fixes a long standing bug in the copy and rename detection
code where a copied file that is also updating its mode loses its
copy status and breaks the diff display.

Change-Id: I15c4d61ff1489e2c9b17e3b9ca76d9dcc98e26a8