Skip to content

Instantly share code, notes, and snippets.

@kssd
Forked from neosergio/gitdiff-svnpatch.sh
Last active August 29, 2015 14:24
Show Gist options
  • Save kssd/20666a235d99ec2fe3fc to your computer and use it in GitHub Desktop.
Save kssd/20666a235d99ec2fe3fc 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