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

Bug 322463

Summary: Synchronize not available on current branch
Product: [Technology] EGit Reporter: Benjamin Muskalla <b.muskalla>
Component: UIAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn, stefan.lay
Version: unspecified   
Target Milestone: 0.10.0-M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Benjamin Muskalla CLA 2010-08-11 22:45:47 EDT
In the Git Repository View, there is a synchronize action available for all branches except for the current one. I think the current branch is the only really interesting branch to synchronize.
Comment 1 Stefan Lay CLA 2010-08-12 05:01:51 EDT
I would say that this works as designed. IMHO synchronizing in a DVCS does mean that you want to compare your working directory with any other branch.

- The other branch can be a local one. Then you see what a merge would do.
- Tho other branch can be a remote one. Then you see what a pull or a push would do. I think that we should think about fetching the remote branch here.

Of course the other branch could also be your currently checked out one: in this case you see what you would commit. This is currently not supported by the synchronize view because there was a discussion in bug 309582 if we should use a more specific view which also shows the staging area.

So, in short, when you call synchronize from package explorer you have to determine the branch to synchronize with, but in repositories view, you first determine the branch and then synchronize.
Comment 2 Stefan Lay CLA 2010-09-28 04:49:41 EDT
We could add the menu entry also to the currently checked out branch and change the label from "Synchronize..." to "Synchronize with Workspace".
Comment 3 Stefan Lay CLA 2010-09-29 07:08:07 EDT
Fix proposed: http://egit.eclipse.org/r/#change,1675
Comment 4 Matthias Sohn CLA 2010-09-29 10:38:22 EDT
merged as 49d6ae5348b5f8e88c8a021a2a9f02fccb220a08