home ‣ Previewing changes before commiting on mac (svn or git)

17 Feb 2009 · Tags: git, svn, mac ← newer • 41 of 588older →

It’s a good habit to preview your changes before committing them. Long time ago I wrote a program to help with that on Windows, called scdiff. On mac, if you have TextMate installed, a simple shell script does the job just as well:

#!/bin/sh

if [ -d ".svn" ]
then
    svn diff | mate
else
    git diff | mate
fi

blog comments powered by Disqus