Skip to content

Instantly share code, notes, and snippets.

@spitty
Forked from neosergio/gitdiff-svnpatch.sh
Created November 22, 2016 06:29
Show Gist options
  • Save spitty/dc3d541dc67f465197dbd0d7d89d6d92 to your computer and use it in GitHub Desktop.
Save spitty/dc3d541dc67f465197dbd0d7d89d6d92 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