ladderlife / autochrome

Structural diffs for clojure source code
Eclipse Public License 1.0
187 stars 11 forks source link

Integrating as a git difftool #7

Open danielcompton opened 6 years ago

danielcompton commented 6 years ago

I'm not sure how hard it would be, but autochrome would be awesome as a git difftool provider for diffing changes. Is this in scope for this project?

fazzone commented 6 years ago

I did not know about git difftool until just now! I learn something new about git every day it seems. I agree it would be a nice thing to support. It looks like you do git difftool -dx /path/to/tool ... and then you get called as tool <old-dir> <new-dir> (Git copies only changed files into two temp dirs). So it should be relatively straightforward to support and I will probably get around to it sometime soon (TM).

Until then you can invoke autochrome just like git diff - I just added support for passing only one argument to diff against your uncommitted changes.

agzam commented 4 years ago

Can someone please, please "graalify" this. It would be really cool to use it for git diffing.