This is a pure-Python script which builds on top of difftastic
s --display json
to provide:
- more ergonomic and ready to use JSON output
- slightly styled HTML table (mimics
side-by-side
)
it addresses following shortcomings of current (v0.51.1
) JSON output:
- line-scoped changes within block-scoped
chunks
are unordered (different each time), had to be sorted by rhs.line_number
then lhs.line_number
- there seems to be a lot of conscutive single-character entries of same type (
highlight
) for some (probably unknown?) languages, those are merged
addresses Wilfred/difftastic#45