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.