Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Patch inversion, inspired by http://stackoverflow.com/a/3902711/634275
#!/bin/bash
# Use : diff_invert.sh somepatchtoinvert.diff
PATCHNAME=$1
interdiff $PATCHNAME /dev/null > $PATCHNAME_inverted
rm $PATCHNAME
mv $PATCHNAME_inverted $PATCHNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment