altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.79k stars 93 forks source link

Is `git revert` possible? #110

Closed TheLostLambda closed 5 months ago

TheLostLambda commented 6 months ago

Hi @altsem ! I could just be missing the option, but is it possible through the UI to create a revert commit?

I've seen there are a couple of reset options, but I don't know if those are quite what I'm looking for?

altsem commented 6 months ago

It is not implemented yet, but should be possible to implement! Would probably want to implement a "reverting" state for the status page (as done for rebase/merge status here :see_no_evil: ).

There's two different keybindings in Magit to revert things. I'm not all too familiar with them, but 'V' seems to revert only commits (with more options?). And 'v' is more flexible, able to revert commits, reverse single hunks or lines.

relates to #18

altsem commented 5 months ago

I've implemented Revert commit as seen in Magit under the V menu. As well as some Args for Revert, and continue/abort!

TheLostLambda commented 5 months ago

Works wonderfully! Thank you! And the new diff display is fantastic too!