Skip to content

Instantly share code, notes, and snippets.

@tbroyer
tbroyer / git-svn-diff.sh
Created January 25, 2011 16:58 — forked from mojodna/git-svn-diff.sh
git-svn-diff.sh
#!/bin/bash
#
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html)
# modified by [email protected]
# modified by aconway@[redacted] - handle diffs that introduce new files
# modified by [email protected] - fixes diffs that introduce new files
#
# Generate an SVN-compatible diff against the tip of the tracking branch
# Get the tracking branch (if we're on a branch)