Bug 484414 - [sync] When synchronizing, provide a quick way to choose common "Destination" for all repository
Summary: [sync] When synchronizing, provide a quick way to choose common "Destination"...
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 4.1.1   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 11:45 EST by Dominik Stadler CLA
Modified: 2015-12-17 07:27 EST (History)
1 user (show)

See Also:


Attachments
Screenshot of the dialog with a number of repositories (48.52 KB, image/png)
2015-12-15 11:45 EST, Dominik Stadler CLA
no flags Details
Patch which adds a button "Select current branch" to the synchronize view (3.63 KB, patch)
2015-12-17 07:27 EST, Dominik Stadler CLA
dominik.stadler: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Stadler CLA 2015-12-15 11:45:01 EST
Created attachment 258701 [details]
Screenshot of the dialog with a number of repositories

I have a number of Git repositories open in a few different Eclipse workspaces and I frequently add/remove repositories as with Git usually repositories are smaller.

However when I use Synchronize View for Git repositories, I have to manually select the "destination" for each repository each time I have a new Git repository that I would like to have watched in the Synchronize view. The "HEAD" is not preselected and it does not remember the previous destination.

See also the attached screenshot.

Possible solutions:
1. Remember the previous "destination"
2. Or provide a way to set the same "destination" for all repositories
3. Or provide a way to "add" a new git repository to a Git synchronization

1. and 3. would work best for me.
Comment 1 Dominik Stadler CLA 2015-12-15 17:35:16 EST
Another option:
4. When adding new projects that use Git (i.e. when Team->Share-Git is performed), add the project to the current synchronization, similar to what Subclipse is doing
Comment 2 Matthias Sohn CLA 2015-12-16 07:16:16 EST
Looks useful to improve this, maybe you want to contribute any of the proposed improvements ? (I don't use synchronize at all so I won't work on improving it).
Comment 3 Dominik Stadler CLA 2015-12-17 07:27:27 EST
Created attachment 258753 [details]
Patch which adds a button "Select current branch" to the synchronize view

I went with the simplest possible solution (let's call it number 5), namely to add a button "Select current branch" which will populate the UI with the current branch for any repository where no destination is set yet