You can pipe DIFF to TextMate

DIFF is a compare tool that you can use from the Terminal to compare files. What I did not know though is that you can PIPE the results to Textmate

view plain print about
1diff /path/to/project/index.cfm /path/to/project/index.cfm | mate

Posted: 19-Feb-2010

View: 2524

Permalink: here

Comments

This comes in really handy when you are using Git on the command-line as well. When you do git diffs you can pipe it the same way and the result is really nice and readable since Textmate has color coding support for diffs.

git diff <branch1> <branch2> | mate

#1 Russ Johnson
19/Feb/10 10:05 AM

Word. TextMate's Terminal integration is awesome.

#2 Aaron West
19/Feb/10 10:22 PM