Skip to main content

reverse_patch

Function reverse_patch 

Source
pub fn reverse_patch(patch: &FilePatch) -> FilePatch
Expand description

Create a reverse patch — swap additions and removals, old and new paths.

Applying the reversed patch to the patched content yields the original. When a combo goes wrong, this is how you rewind the tape.