view easyhg-extdiff-osx.sh @ 235:2f4d401ce47c

* Better handling for case where we've just created a new branch but not yet committed it (i.e. no heads are on our current branch)
author Chris Cannam
date Fri, 07 Jan 2011 21:58:38 +0000
parents 43ecb0dcc44e
children
line wrap: on
line source
#!/bin/bash
if [ $# -lt 2 ]; then 
    echo Insufficient arguments: $@
    exit 2
fi
while [ $# -gt 2 ]; do
    shift
done
/usr/bin/opendiff "$1" "$2" | cat