384 ms·
If you use textmate: git diff | mate -
by bbsabelli 16y ago
If you use textmate:
git diff | mate -
- bluesnowmonkey 16y agoIt works without the trailing slash too, if you want to save a couple of keystrokes. git diff | mate
- deleted 16y ago[deleted]
- blaix 16y agoWhat is the trailing slash for?
- pyre 16y agoA lot of command-line programs that operate on files take '-' as placeholder for stdin or stdout. For example: wget -O - 'http://news.ycombinator.com' | less The -O option is for specifying an output file, but the '-' says to dump the contents to stdout.
- blaix 16y agoThanks! Always enjoy adding to my command line tool belt.
- pjscott 16y agoFunny; I always use the curl command for that kind of thing, since it automatically pipes to stdout -- but there's something fun you can do with that, too: curl http://example.com/foo.tar.gz | tar zxf - Tar's input file is "-", which means stdin. This downloads and decompresses a tarball to the current directory, without creating a temporary file that I have to delete later.
- hfinney 16y ago- = dash not slash
- deleted 16y ago[deleted]
- theycallmemorty 16y agoYou can also change your git options to use a different diff tool.