6

If i'm looking at the log messages and select one specific commit to view the diff is it possible to revert (or reverse appply) a specific hunk of that commit? I know there is a revert commit option but i'm only interested in one small part of it.

Thanks in advance.

Rudolf Adamkovič
  • 31,030
  • 13
  • 103
  • 118
Gonçalo Marrafa
  • 2,013
  • 4
  • 27
  • 34

1 Answers1

5

Yes, and it's the same key-binding whether it's a commit, a file, a hunk, or a marked region. Just type v with the thing in question highlighted, and Magit will prompt you accordingly.

phils
  • 71,335
  • 11
  • 153
  • 198