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
Prepopulate branch name in FormCreateBranch #7916
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine
Could you please provide rationale behind this FR? |
When you want save a test/temp commit on what you are working on or you want to save a temp branch before a rebase (easier to find than using reflog or a tag). |
Instead just commit with wip in subject then when ready to cleanup just go
an interactive rebase on the commits being cleaned up. You can squash or
fixup or reword. You can also right-click a commit and tell it to create a
fixup commit. Interactive rebase will autosquash.
|
I use that as well as stash (should name them though). It all depends on what I am doing, how the changes are expected to be useful and if they can be merged or not. |
From issue description:
|
I usually create a local tag if I think I might have a hairy rebase. Then I
just right click one commit in history and do an interactive rebase. I
leave branches for seprate work. If it gets weird, I just abort and try
again.
|
You still must give it a name. Extending the current branch (or tag) is a good default IMO. |
d6096c4
to
7ca3d7d
Compare
@msftbot merge in 1 day |
Hello @mstv! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Proposed changes
FormCreateBranch
with the first branch or tag at the current revisionIt can be replaced easily because the whole string is selected.
My use case:
I often create temporary copies of branches before rebasing, squashing or fetching force-pushed branches. I don't want to search the ref log.
Screenshots
Before
After
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.