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

Allow reset to branch in branches view #2170

Closed
OmegaJak opened this issue Apr 5, 2024 · 3 comments · Fixed by #2171
Closed

Allow reset to branch in branches view #2170

OmegaJak opened this issue Apr 5, 2024 · 3 comments · Fixed by #2171
Milestone

Comments

@OmegaJak
Copy link

OmegaJak commented Apr 5, 2024

Is your feature request related to a problem? Please describe.
As part of my workflow (squashing commits locally before merging), I need to leave gitui to run a command like git reset --soft master. While possible to do in the commits/log view, it is not always easy to find the desired branch as the target for resetting.

Describe the solution you'd like
I would suggest that it be possible to reset directly from the branches view. Not sure what hotkey is best since Shift+R is already taken in that view (and so is 'r'), but that would make it consistent with the log view. Hitting the hotkey to reset should bring up the same menu as was added for #1500 and function the same way, just targeting the select branch instead of a specific commit.

Describe alternatives you've considered
Maybe this could be mitigated by making it easier to find branches in the log view (I couldn't find a way to in the find dialogue). But that seems less direct than adding a way in the branch view itself.

Additional context
Thanks for the awesome tool!

@extrawurst extrawurst added this to the v0.26 milestone Apr 7, 2024
@extrawurst
Copy link
Owner

this is fairly easy to integrate

@extrawurst
Copy link
Owner

looks like this in #2171:
Screenflick Movie 28

extrawurst added a commit that referenced this issue Apr 7, 2024
allow triggering branch reset from branch popup. closes #2170
@OmegaJak
Copy link
Author

OmegaJak commented Apr 8, 2024

Excellent, thank you!

IndianBoy42 pushed a commit to IndianBoy42/gitui that referenced this issue Jun 4, 2024
allow triggering branch reset from branch popup. closes extrawurst#2170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants