Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339685

Summary: Add repositories from workspace into Git Repositories view
Product: [Technology] EGit Reporter: Tobias Oberlies <t-oberlies>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mathias.kinzler, matthias.sohn
Version: 0.12   
Target Milestone: 0.12-M2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Tobias Oberlies CLA 2011-03-11 08:22:28 EST
In the end I got it working, but I took several wrong paths before I got to where I wanted. Maybe you could enhanceme the behaviour of the "Git Repositories" view so that my use case becomes more intutive.

I had the following situation: I had projects from Git imported in the workspace and wanted to check out a different branch. Therefore I opened the Git repositories view, but it was empty. I found the "Add an existing local Git Repository to this view" button, but the wizard only offered to search the file system. Searching the file system didn't seem right because the information was already there in the workspace - at this point I thought that it would have been good if I could have selected a workspace project in the wizard.

Next I tried to drag a shared project into the view. Unfortunately this had no effect.

Next I tried the "Team" context menu on the project, and there I found the entry "Show in Repositories View" which did what I wanted. This menu entry was good, but it was only the third thing I tried.


Now I was curious: what would have been the best way to fill the repositories view - couldn't that work automatically? At that point I discovered the "Link with xxx" buttons (btw. I don't get why we need two buttons for this) which adds my repository if I select the right thing - but that didn't help in my case because I just started to work and I had nothing selected yet. But I had just enabled the Git team provider for my projects - this could have added the repository.

So in summary (and for people who don't want to read the entiry tale) I think that sharing a project with Git should add the Git repository to the repositories view.
Comment 1 Mathias Kinzler CLA 2011-03-21 04:24:52 EDT
Good point, Tobias. I think we should simply add the repository automatically to the Repositories View after sharing the project.

Code review at http://egit.eclipse.org/r/#change,2786
Comment 2 Matthias Sohn CLA 2011-03-24 15:31:10 EDT
merged as fb3788bd01e613af59e62293e0eb364a5caa01b0