Skip to content

Instantly share code, notes, and snippets.

@bencaron
Created August 21, 2012 15:04
Show Gist options
  • Save bencaron/3416294 to your computer and use it in GitHub Desktop.
Save bencaron/3416294 to your computer and use it in GitHub Desktop.
SVN diff ignore space
#/bin/sh
# Merci FreeFallFred!
DIFF="/usr/bin/diff"
LEFT_LABEL="$3"
RIGHT_LABEL="$5"
LEFT="$6"
RIGHT="$7"
OUTPUT=`$DIFF $LEFT -L "$LEFT_LABEL" $RIGHT -L "$RIGHT_LABEL" -ubB`
echo "$OUTPUT" | sed 's/\t/ /g';
alias snvdiff="svn diff --diff-cmd ~/notabdiff.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment