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.

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