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?
+5
A:
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.
Greg Hewgill
2009-02-03 18:33:01
Thanks, I was looking for this. Here's the git config equivalent: git config --global core.pager "/usr/bin/mate"
cobra libre
2009-06-09 04:21:21
+9
A:
I normally pipe the contents to mate like this:
git diff | mate -
Bill Turner
2009-02-03 18:37:05
Also, just as an interesting point: you don't need to specify the `-` when piping to `mate` because `mate` reads from stdin when run with no parameters.
thenduks
2009-10-22 22:03:32
+3
A:
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.
DarthNerdus
2009-02-04 01:59:35