Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: "Create a new branch and switch to it, but keep uncommitted changes" #348

Open
LinqLover opened this issue Oct 30, 2021 · 9 comments
Labels
enhancement help wanted Want pull requests because it is unlikely this will be worked on by the maintainers soon. optional Squit Squot ui

Comments

@LinqLover
Copy link
Contributor

No description provided.

@j4yk
Copy link
Collaborator

j4yk commented Oct 30, 2021

...or the possibility to commit onto a new branch from the commit dialog, like in TortoiseGit.

@j4yk j4yk added enhancement help wanted Want pull requests because it is unlikely this will be worked on by the maintainers soon. Squit Squot ui labels Oct 30, 2021
@LinqLover
Copy link
Contributor Author

Oh yes, this sounds also very helpful!

@j4yk
Copy link
Collaborator

j4yk commented Nov 14, 2021

Have just re-read the issue title: if you press the Branch button you can already accomplish what you describe. Give the new branch name, then choose "Switch and move over unsaved changes" (you get prompted for that right away, no need to invoke additional menus or so).

Is there something else you need to resolve this issue?

@LinqLover
Copy link
Contributor Author

Ah, then I never dared to click this button because of this misconception! 😆 Maybe the item should be renamed to "Create a new branch and switch to it..." (note the ellipsis) then?

@j4yk
Copy link
Collaborator

j4yk commented Nov 18, 2021

I wonder whether an additional menu item is really required. What would be the benefit over using the button?

@LinqLover
Copy link
Contributor Author

I wonder whether an additional menu item is really required. What would be the benefit over using the button?

Tbh I never used this button because I was always unsure whether it would base the new branch on the current working copy, the active branch, the currently selected branch, or the currently selected commit. :-) Maybe we should clarify this first by adding a longer help text to this button?

@j4yk
Copy link
Collaborator

j4yk commented Dec 22, 2021

I extended the help text.

@j4yk
Copy link
Collaborator

j4yk commented Dec 22, 2021

In case you want this feature for other commits than the head of the current branch, I would not like to put up a combinatorial explosion of the options in the commit list menu. I would instead propose to show the same prompt that appears if you used the Branch button.

@LinqLover
Copy link
Contributor Author

Thanks for extending the help text!

In case you want this feature for other commits than the head of the current branch, I would not like to put up a combinatorial explosion of the options in the commit list menu. I would instead propose to show the same prompt that appears if you used the Branch button.

This sounds useful! As for prioritizing, this is a convenience issue only, as I can also use the branch button today and then reset the newly created branch to an older commit, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted Want pull requests because it is unlikely this will be worked on by the maintainers soon. optional Squit Squot ui
Projects
None yet
Development

No branches or pull requests

2 participants