Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352245 - Include a "New Branch..." option in the "Switch To" toolbar/menubar item
Summary: Include a "New Branch..." option in the "Switch To" toolbar/menubar item
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-15 15:00 EDT by R Shapiro CLA
Modified: 2012-03-09 05:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R Shapiro CLA 2011-07-15 15:00:54 EDT
The "Switch To" action in the toolbar (and in the "Git" menubar menu) does not provide a way to create a new branch.  In order to make a branch we must currently use the _other_ "Switch To", the submenu under Team.

This seems overly awkward.  It's also confusing to have two "Switch To" items that behave differently.

The simple solution would be to change the toolbar/menubar item so that it matches  the Team submenu item, thereby including "New Branch"
Comment 1 Remy Suen CLA 2011-09-11 07:21:59 EDT
(In reply to comment #0)
> The "Switch To" action in the toolbar (and in the "Git" menubar menu) does not
> provide a way to create a new branch.

Which toolbar are you talking about? Could you please attach a screenshot of your toolbar and your menu? Thank you.
Comment 2 R Shapiro CLA 2011-09-11 08:27:44 EDT
I'm talking about the main Eclipse toolbar and menubar.

1) Go to 'Window -> Customize Perspective -> Command Groups Availability' and select the "Git" group in the "Available Command Groups" section.

2) Note the items listed in "Menubar Details".  One of them is "Switch To"

3) Note also the items listed in the "Toolbar Details".  One of them is "Checkout Branch, Tag or Reference"

Despite the different names these two items are functionally identical.  They both bring up a dialog that will let you switch to an existing branch, tag or reference, but will not let you create a new branch.


4) Now right-click on any top-level module under Git version control and look at the submenu under 'Team -> Switch To...'.  

5) Note the difference: this submenu includes:
    "New branch...",
     a list of local branches, and
     "Other...", which brings up the same dialog as in (2) and (3), above.

My recommendation is that you unify this to make it more consistent and also easier to create a new branch, which happens all the time in Git.

Specifically, the menubar item described in (2) and the toolbar item described in (3) should include the same three options as 'Team -> Switch to...':  creating a new Branch, selecting a local branch, and Other for the full dialog of branches, tags and references.

Thanks for looking into this.
Comment 3 Stefan Lay CLA 2012-03-09 05:09:47 EST
I think this is implemented now. Ou can create a new branch from the dialog.