Skip to content

Instantly share code, notes, and snippets.

@RedHatter
Last active December 30, 2015 15:38
Show Gist options
  • Save RedHatter/7849183 to your computer and use it in GitHub Desktop.
Save RedHatter/7849183 to your computer and use it in GitHub Desktop.
Create a patch from 'original_directory' to 'patch_directory' of only the files with the extension 'ext'.
find original_directory patch_directory -type f ! -name '*.ext' -printf '%f\n' | diff -ru original_directory patch_directory -X - > project.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment