How do I view git diff with textmate

I have my editor setup to be textmate but when I do a git diff it uses vi to show me the diff output, is there any way to set it to show the diff in textmate?


I normally pipe the contents to mate like this:

git diff | mate -

The GIT_PAGER environment variable is used to specify which program to use to show multi-page output. You should be able to set this to point to textmate.

If you have the Terminal link installed it's simple:

git diff | mate

I personally have an alias setup that maps 'diffmate' to that command.

Also, it should be pointed out that, within TextMate, one can use Bundles>>Diff to perform the comparison within TextMate.

Need Your Help

How do I get the absolute directory of a file in bash?

linux bash shell

I have written a bash script that takes an input file as an argument and reads it.

Android: setSelection having no effect on Spinner

android spinner

I'm having some problem with setSelection on a Spinner. I set the value to be pre-selected when the spinner is shown in code, but it has no effect and the first alternative in the list is always se...