Skip to content

Instantly share code, notes, and snippets.

@fedir
Created April 9, 2013 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/5344453 to your computer and use it in GitHub Desktop.
Save fedir/5344453 to your computer and use it in GitHub Desktop.
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