DESCRIPTION

Let staging view use submodule repos

If the staging view is linked to the selected resource and if that
resource belongs to a submodule then staging view should also run in
the context of the submodule repo. This allows to work with submodules
in a similar manner than with native git. If I want to do a commit in a
submodule repo then select a resource in that submodule repo and you can
use Staging view to prepare the commit in the submodule repo. In native
git you would "cd" to a folder containing a file from the submodule to
switch context from the containing repo to the submodule repo. In Egit
you have to select a resource from the submodule to achieve the same.

RepositoryMapping is enhanced by one method which can return a submodule
repository. In future RepositoryMapping could be further enhanced to 
support git submodules in general.

Bug: 382093
Bug: 446344
Change-Id: I6cbd5d5f4d0f57e93ce40a9dfb54e7b7c67e2e3a


COMMENTS

author: Carlie Harper
date: 2014-12-10 12:00:29.000000000

Uploaded patch set 1.

-------------------------------------
author: Brenden Conley
date: 2014-12-10 12:19:07.000000000

Patch Set 1:

Build Started https://hudson.eclipse.org/egit/job/egit-stable.gerrit/458/

-------------------------------------
author: Brenden Conley
date: 2014-12-10 12:51:25.000000000

Patch Set 1: Verified-1

Build Failed 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/458/ : FAILURE

-------------------------------------
author: Brenden Conley
date: 2014-12-10 22:34:21.000000000

Patch Set 1: -Verified

Build Started https://hudson.eclipse.org/egit/job/egit-stable.gerrit/464/

-------------------------------------
author: Brenden Conley
date: 2014-12-10 22:37:50.000000000

Patch Set 1: Verified-1

Build Failed 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/464/ : FAILURE

-------------------------------------
author: Douglas Trujillo
date: 2014-12-13 00:12:16.000000000

Patch Set 1: Code-Review-1

(2 comments)

Line:1853, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java -> style nit: we don't use braces around single line blocks

Line:162, org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryMapping.java -> the submodule walk should be run in a background job otherwise it may freeze the UI, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=439674 and https://git.eclipse.org/r/#/c/34281/1/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingViewContentProvider.java,cm

-------------------------------------
author: Carlie Harper
date: 2014-12-15 14:37:41.000000000

Patch Set 1:

(2 comments)

Line:1853, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java -> Done

Line:162, org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryMapping.java -> Done

The caller uses a ModalContext

-------------------------------------
