Skip to content

Instantly share code, notes, and snippets.

@speechkey
Forked from katta/gitdiff-svnpatch.sh
Created July 11, 2012 19:26
Show Gist options
  • Save speechkey/3092609 to your computer and use it in GitHub Desktop.
Save speechkey/3092609 to your computer and use it in GitHub Desktop.
Converts git diff to svn patch format
git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" --ignore-space-at-eol > changes.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment