textmate2 - When I do git diff | mate2 it opens Textmate but doesn't show me the diff -
i have tried manner of git diff
commands.
from using actual commit hashes:
$ git diff e2951679823lkdasdkjn38 7jhlkdjhlakj3kl2jlj2a90 | mate2
to using 2 branches:
$ git diff master develop | mate2
both of launch textmate2 don't show me files want see.
i able diff on gemfile.lock
on last 2 or 3 commits in textmate. how do that?
check out mate -h
. can give tm2 hint on bundle want use -t
switch. following compares 2 branches, piping output textmate in diff mode:
git diff master develop | mate -t source.diff
to see single path, following:
git diff master develop -- <paths> | mate -t source.diff
this common syntax number of other commands (like git log). can read more on git diff manpage:
git diff [options] [<commit>] [--] [<path>…] git diff [options] --cached [<commit>] [--] [<path>…] git diff [options] <commit> <commit> [--] [<path>…] git diff [options] <blob> <blob> git diff [options] [--no-index] [--] <path> <path>
Comments
Post a Comment