Skip to content

Instantly share code, notes, and snippets.

@z0u
z0u / git-svn-diff.sh
Created February 4, 2012 22:43 — forked from neowulf/git-svn-diff.sh
Creates a patch file between svn branch and git branch
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by mike@mikepearce.net
# modified by aconway@[redacted] - handle diffs that introduce new files
# modified by t.broyer@ltgt.net - fixes diffs that introduce new files
# modified by m@rkj.me - fix sed syntax issue in OS X
# modified by alex@phatcore.com - search for last SVN commit; allow diff
# against non-tracking branch; remove function names on @@ lines.
#