pretty diff viewer
adamdecaf opened this issue · comments
From #4 it'd be handy to show diffs between yaml files. That way it's a bit more apparent which CA's were removed, added, etc between runs.
I tried implementing this using difflib
(https://docs.python.org/3.6/library/difflib.html) but the result is not as good as just using the diff
command line tool.
I actually don't think we can have something better than diff
; one of the reasons I picked YAML was so that it would be easy to diff two stores.
Using diff
is fine, but that probably forces us to sort the yaml. (Really just generate deterministic field ordering.) Otherwise there could be diffs just from line noise.
Yeah, the YAMLs are always sorted by the subject name in this project.