CJTozer / SublimeDiffView

Side-by-Side Git, SVN and Bazaar Diff Viewer for Sublime Text 3
https://packagecontrol.io/packages/DiffView
MIT License
20 stars 7 forks source link

Can this be used as a Git difftool? #63

Closed gwerbin closed 6 years ago

gwerbin commented 6 years ago

Git makes it possible to use an external "difftool" in place of the stock command-line pager-based diff viewer. Can DiffView be configured somehow as a Git difftool?

CJTozer commented 6 years ago

There is no way to use this Sublime plugin as a difftool. You may want to check out Sublime's own offering of a stand-alone Git GUI.

(Disclaimer: I've not used this tool, but it certainly looks to have a lot of good features as a stand-alone application).

gwerbin commented 6 years ago

@CJTozer thanks for clarifying and thanks for the recommendation.

In theory, would it be possible to rig something up where difftool starts Sublime and then shows the diff using this plugin?

CJTozer commented 6 years ago

Well, interesting question. Looking at the Unofficial Docs it seems there's a --command parameter you could pass to ST3 on start-up.

So in theory perhaps yes, you could get something like this to work, but:

So, yes in theory it's possible to rig something up, but I think it won't "just work" and would be quite fiddly to make it all line up - likely requiring quite a large enhancement on the plugin itself.

Thanks for your interest - sorry this doesn't meet the use case you're looking for.