Add command to reset diff hunks #4974
Labels
A-vcs
Area: Version control system interaction
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
Suggested to me by @Byron
It would be nice to have a command/keybinding to reset hunks (like
git reset --hard
but more fine grained).This functionality is diff provider independent and can be implemented by just removing the
after
lines in the current document and replacing the with thebefore
lines in the diff base.I would implement this as a type able command (maybe
:reset
) that resets the hunk at the current cursor. Ideally there would be a way to quickly place multi-cursors inside hunks so that multiple hunks can be selected at once.The text was updated successfully, but these errors were encountered: