Reverting changes by hunks from commits #3157
-
Is it possible to selectively revert changes (make changes opposite to a hunk without modifying the commit) from an existing commit? I imagine something like that:
I vaguely remember such command from Magit which was useful to selectively remove changes from a commit, it made this easier than, for example, running a I see that when I navigate to file changes in a commit I'm somewhat pointed to "custom patch" mechanism but I'm not sure what that does. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're looking at the right thing, it is done through custom patches, here's a snippet that demonstrates it. |
Beta Was this translation helpful? Give feedback.
You're looking at the right thing, it is done through custom patches, here's a snippet that demonstrates it.