Skip to content

Instantly share code, notes, and snippets.

View nmacinnis's full-sized avatar

Nicholas MacInnis nmacinnis

View GitHub Profile
@nmacinnis
nmacinnis / git-svn-diff.sh
Created November 23, 2011 00:59 — forked from mojodna/git-svn-diff.sh
Windows and TortoiseSVN-friendly modifications
#!/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
#
# Generate an SVN-compatible diff against the tip of the tracking branch
# Get the tracking branch (if we're on a branch)
TRACKING_BRANCH=`git svn info | grep URL | sed -e 's/.*\/branches\///'`