Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

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

Comments Comments (2) | Print Print | Send Send | 1187 Views

(Comment Moderation is enabled. Your comment will not appear until approved.)
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
Word. TextMate's Terminal integration is awesome.
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .