Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Created June 1, 2011 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattconnolly/1001577 to your computer and use it in GitHub Desktop.
Save mattconnolly/1001577 to your computer and use it in GitHub Desktop.
use mac FileMerge (opendiff) to view differences to a file
#!/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