Question

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?

Was it helpful?

Solution

I normally pipe the contents to mate like this:

git diff | mate -

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top