In 'Search Git Repositories' wizard resolve variables in repository path

Bug: 384998
Change-Id: Ie97804d4cda39bb7fab37bf47d697e9193dcf130
Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Disable cleaning if selection is empty

The current implementation runs the git clean command even if no file or
directory is selected in the clean wizard. That may take quite some time
and may lead to cleaning the repository although the user expected
nothing to be cleaned.

Change-Id: If59bd58b0204a069d9cf77b5ffa05d4d566cf802
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Robin Stocker <robin@nibor.org>
Make "Clean..." available on project under Team > Advanced

Change the action handler to extend RepositoryActionHandler, so that the
same one can be used for both repositories view and team menu.

Also add the missing mnemonic.

Bug: 418210
Change-Id: Ic7ab20dead4cdd1590a5b263dc670da3d70a41d5
Signed-off-by: Robin Stocker <robin@nibor.org>
[historyView] Ref shortening with "..." can be longer than original

Also count the "..." for the max ref length. To compensate for
shortening more than before, increase the default max length to 18.

Before: "origin/stable-3..."
After:  "origin/stable-3.3"

Bug: 428201
Change-Id: I5a79b98902268f445355aa60f7747f0d448bd259
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Push Branch: Add checkbox for force push

Bug: 426919
Change-Id: If984e6b15388cb31c7e56eb803eacbc4657f8dc9
Signed-off-by: Robin Stocker <robin@nibor.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Push Branch: Preselect merge/rebase if branch already configured

In case the branch already has an upstream configuration, preselect the
correct configuration in the wizard. With that, it's not overwritten
with different values than before if the user is not careful.

Also, only show the "overwrite" warning when the chosen values differ
from the existing configuration.

Bug: 426223
Change-Id: Iac5f993cc2e2b56c579b5779cc1647c121c2c3a5
Signed-off-by: Robin Stocker <robin@nibor.org>
[historyView] Fix flickering of commit message scroll bars on mouse move

This only occurs on Windows, but let's revert this small aesthetic
change until we can fix the root cause, see bug.

Bug: 428029
Change-Id: I452c7e306fd39074110d3d5228752c29124e962d
Signed-off-by: Robin Stocker <robin@nibor.org>
Prevent premature UI refreshes by batching resource changed events

All long running operations which may potentially lead to premature UI
refreshes e.g. by changing files in the file system should use
WorkspaceJob. This will batch resource change events until the job is
finished running and remove the overhead imposed by repeated UI
refreshes reacting on events trickling in if not batched.

See
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FresAdv_concurrency.htm

Bug: 427681
Change-Id: Ibdc454f5ffb290831b81c5e775da35434811454c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
EGit v3.3.0.201402191814-rc1

Change-Id: Ieba89e1613752cbac651f815769d726da560af8e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Prepare post 3.3.0RC1 builds

Change-Id: I84320de2306ef228554cd4a4a519923b029f205f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Fix NPE in RepositoriesViewContentProvider.getChildren for FOLDER

File#listFiles can unfortunately return null (instead of an empty
array).

Bug: 428654
Change-Id: I41d44a9bfdfd9ee9fb7749977a72d0d1ddedafe1
Signed-off-by: Robin Stocker <robin@nibor.org>
Add new feature o.e.jgit.http.apache to p2 repository

JGit-Dependency: I5ef5e00c53678b9e1d7cfd54bbca3ff6f1c1c967
Change-Id: I4adfecd56d84ee24a50cadb1700c8be56e4172a3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Merge "Add new feature o.e.jgit.http.apache to p2 repository" into stable-3.3
Merge branch 'stable-3.3'

* stable-3.3:
  Add new feature o.e.jgit.http.apache to p2 repository
  Fix NPE in RepositoriesViewContentProvider.getChildren for FOLDER
  Prepare post 3.3.0RC1 builds
  EGit v3.3.0.201402191814-rc1
  Prevent premature UI refreshes by batching resource changed events
  [historyView] Fix flickering of commit message scroll bars on mouse move
  Push Branch: Preselect merge/rebase if branch already configured
  Push Branch: Add checkbox for force push
  [historyView] Ref shortening with "..." can be longer than original
  Make "Clean..." available on project under Team > Advanced
  Disable cleaning if selection is empty
  In 'Search Git Repositories' wizard resolve variables in repository path

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