Skip to content

Instantly share code, notes, and snippets.

@miAndreev
Forked from neosergio/gitdiff-svnpatch.sh
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save miAndreev/d3ce5786ad6cfa70cbe2 to your computer and use it in GitHub Desktop.

Select an option

Save miAndreev/d3ce5786ad6cfa70cbe2 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