Skip to content

Instantly share code, notes, and snippets.

@JiboStore
Forked from neosergio/gitdiff-svnpatch.sh
Created July 19, 2016 03:34
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 JiboStore/e5f3c8722a40686ee05e324b68a29f68 to your computer and use it in GitHub Desktop.
Save JiboStore/e5f3c8722a40686ee05e324b68a29f68 to your computer and use it in GitHub Desktop.
git diff --no-prefix --ignore-space-at-eol | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment