Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chulman444/1675388d89413d6ef897ebf8e9b455dc to your computer and use it in GitHub Desktop.
Save chulman444/1675388d89413d6ef897ebf8e9b455dc to your computer and use it in GitHub Desktop.

Getting original file from a new or patched file from a diff file.

Instead of diff orig new > diff0 and keeping diff0, and original file,

diff new orig > diff0 then keep the new and diff0 and discard the original file.

Didn't take very long to think of this, but I may forget again.

Having this "I have to come up with a solution" feeling stresses me. ARCHIVED!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment