Created
June 1, 2011 01:00
-
-
Save mattconnolly/1001577 to your computer and use it in GitHub Desktop.
use mac FileMerge (opendiff) to view differences to a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# use mac FileMerge (opendiff) to view differences to a file. | |
# | |
# usage: svn_od <filename> | |
# | |
# works with absolute and relative paths to files. | |
# | |
function svn_od { | |
DIR=`dirname "$1"` | |
FILE=`basename "$1"` | |
opendiff "$DIR"/"$FILE" "$DIR"/.svn/text-base/"$FILE".svn-base; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment