shaunvxc / envy

:memo: safely make edits and sync local changes to files living in the site-packages of your virtualenvs
MIT License
39 stars 3 forks source link

add envy diff feature #12

Closed shaunvxc closed 8 years ago

shaunvxc commented 8 years ago

This PR allows for running diffs between the code sitting in the virtualenv and the associated backed up copies

This is crude in its current state- and I've only tested it so far on files (ie envy diff foo/bar.py -- and not envy diff foo).

@hltbra do you have any suggestions here? Should I be using subprocess / is there a better utility I could be using for running the diff.

CC @pguiv @andrewgross

andrewgross commented 8 years ago

So, there are python builtins that can do diffs. However, after researching them I am not convinced its what you want to use. Using the builtin diff means it can generate patch files for git etc.

shaunvxc commented 8 years ago

Some options for (potentially) better diffing:

https://github.com/jeffkaufman/icdiff