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.

Revisions

  1. @neosergio neosergio revised this gist Jul 11, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gitdiff-svnpatch.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" --ignore-space-at-eol > changes.patch
    git diff --no-prefix --ignore-space-at-eol | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch
  2. @katta katta revised this gist Jun 29, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gitdiff-svnpatch.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch
    git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" --ignore-space-at-eol > changes.patch
  3. @katta katta created this gist Jun 16, 2011.
    1 change: 1 addition & 0 deletions gitdiff-svnpatch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git diff --no-prefix | sed -e "s/^diff --git [^[:space:]]*/Index:/" -e "s/^index.*/===================================================================/" > changes.patch