Don't pretend that $gitprefix can be changed via the text field

Editing the field will not change the setting, only the browse
button works, hence make the text field always read-only.

Change-Id: I51a6199dd97abbb01eb78cee7a4d80b3ab58ae14
Check configuration (HOME environment) on plugin start

$HOME is relevant for how we find git config setting so we should
check that as soon as possible.

Change-Id: Iea8fb85a07a3131a6ff1265fba2af6ac74709698
Handles missing HOME on Unix-like systems

Admittedly this is am exotic case, but help testing the code when not on
windows.

Change-Id: I44029a9e35cb2dad62b1ef365e17ee5a562ca1c3
Warn user if Git's system wide settings cannot be found

A Git user may have important settings in the system wide configuration
file. That file is located relative to Git's installation directory.
EGit tries to find that file automatically by looking for the git
executable. If Git cannot be found then EGit also cannot find the system
wide settings.

In order to stay compatible with Git, in particular on Windows, where
Git may not appear in PATH, it is important that the user gets notified
that there may be a problem. The most important setting is typically
core.autocrlf.

Change-Id: Id1b6261edb778e82d76c0dfcfbf26228aa515ee9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Make restore defaults "work"

The name is misleading as it attempts to revert to the saved settings.
Fixing that is another issue. With this change it reverts the settings
in the config editor to "saved".

Change-Id: I7ee391261975996c95356ab06fbe6314b61111cd
JGit-Change-Id: I50cc8056aaff47fef6080970866962e3eb634e29
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Remove unneeded refresh

Change-Id: Ic146435af015aacc5e0dc6a6066c39aa5f2eb75b
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Remove the saved git prefix setting on restore defaults

EGit will attempt to autodetect the location of Git.

Change-Id: I8e49b8360e5c77d4ad1f7a66f5b02b497d067294
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Add a "Push to Gerrit" action

This action allows to directly push to Gerrit by selecting a URI and the
name of the Gerrit branch.

Similar to the "Fetch from Gerrit" wizard, the user must select a URI
and the name of the Branch. The values are remembered for ease of use.

This is particularly helpful when working with several Gerrit branches
in parallel.

The action is added to the Repositories View menu as well as to the Team
-> Remote sub-menu.

Change-Id: Ib117aa0285f006a4c4bd7a54707b9ca6ae4cd475
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
[historyView] Use resource encoding for compare editor nodes

Otherwise the default encoding is used to decode the contents, which may
be different from the resource encoding. That then would result in the
file being displayed incorrectly.

See bug 345160 for similar fixes.

Change-Id: I3a4e16cce44b87b9276b4e28a75609a1c4eca233
Signed-off-by: Robin Stocker <robin@nibor.org>
[historyView] Use single resource manager

GitHistoryPage now manages a single ResourceManager
instance that is passed to all downstream objects to
be used for creating colors.

This removes the need for downstream objects to worry
about managing and disposing of colors and instead
ensures that all colors are properly disposed of only
when the history view itself is disposed.

Change-Id: Ifbf35e92c2d930c4e448f3cefe7d907c4e0d9bad
Merge "[historyView] Use resource encoding for compare editor nodes"
Fix compile errors and warnings in MANIFEST.MF

Change-Id: I5a07c835eff90e5c9265dcb92ac8cd0c11cd4bd8
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
Cleanup and repair of History View Show menu

- add "Tag Sequence" action and adjust commit viewer to react on this
- move "Wrap Comments", "Fill Paragraph", and "Tag Sequence" to a
  sub-menu "In Revision Comment"
- revive the context menu in "Revision Comment" area (was broken but is
  still described in the user guide)
- remove some redundant "Show"s from label texts
- adjust the Git History preference page to show the preferences in a
  similar sequence as the menu
- use groups in the preference page to better visualize the scope of the
  preferences

Change-Id: Ib107293658cb74469a51ccc9bae8ae12ed40b8a0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Don't create IndexDiffCacheEntry for bare repositories

Change-Id: I523cd1994be0433167b1abf03cdea805e5c5c6d1
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Show the repository name in the title of the Pull Result dialog

Bug: 359981
Change-Id: I61327cea70805ccab03f488749d98a242e6a6591
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
Make AbstractBranchSelectionDialog resizable and persist bounds

E.g. the "Compare With > Branch, Tag, or Reference" dialog did not
resize the tree vertically and didn't store the dialog bounds.

Change-Id: I1eacde0f50cc336d5186af6fe6bd2e1c89661fed
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
Merge "Show the repository name in the title of the Pull Result dialog"
Added missing copyright info

Bug: 359981
Change-Id: Ifb180da2387da1b8acbcedebea25faec1dce0119
Signed-off-by: Dani Megert <Daniel_Megert@ch.ibm.com>
Merge "Added missing copyright info"
Configure Gerrit wizard: some small UI improvements

* Add a "refs/for/" text in front of the branch field to make clear what
has to be entered by the user
* Add content proposals for the branch field
* Add mnemonics for the field labels
* Cleanup after removing the wizard from the clone wizard
* Add the "Gerrit" icon to the corresponding menu entry
* Display remote and repository name in page description

Change-Id: I44e23888d541b0cec715615de1b2040fbd5b8f74
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>