Lazygit: Reset individual changed lines

Created on 15 Sep 2019  路  3Comments  路  Source: jesseduffield/lazygit

Is your feature request related to a problem? Please describe.
Often, I try some changes in my code. In case the new idea does not work out, I want to go back to the original code in a speedy manner and reset only these specific lines. At the same time, I have many more changes I want to leave unchanged. Therefore, I miss an option to reset individual lines. For me it would be a really nice feature and ease my way of working, as I didn't have to close lazygit and go back to git-cola or the command line anymore :)

Describe the solution you'd like
As I really like the option to stage individual lines by pressing 'space' while scrolling through my files, I just want to press some other key to reset the currently selected line.

enhancement

All 3 comments

This is something I've wanted for a while as well, I've just never put the time in to make it happen. It seems to me like it should be simple enough: if you want to reset a single line, just grab the associated hunk, apply it in reverse, then apply it again with the selected line missing. I'll see if I can look into this this week.

this has been implemented in the latest release :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

voigtan picture voigtan  路  4Comments

kristijanhusak picture kristijanhusak  路  6Comments

5minpause picture 5minpause  路  6Comments

tupaschoal picture tupaschoal  路  6Comments

spin6lock picture spin6lock  路  5Comments