Open Wilfred opened 3 years ago
Hey! Anyway I can help out with this issue?
Is the commit f442efa adding the ability to output html? Or is it a typo in the commit message?
See: https://github.com/Wilfred/difftastic/pull/158 The JSON output can be used to generate a HTML page.
Argh, commits from git subtrees are closing issues in this repo. This isn't done yet.
Haha, are there any updates on this? I see you can generate HTML from the JSON, but is there a guide on it or something?
@Milo123459 see my example in Python
@Wilfred I have found a few shortcomings of the json
output preventing it's use in real-life. The output itself is not enough to rebuild a diff without:
workaround:
difft …… | tee colored_diff_with_ansi_codes
cat colored_diff_with_ansi_codes | ansi2html > diff.html
I think providing an extension that could utilise difftastic on GitHub would be useful. I'm not sure if your workaround would work for that though
This would be valuable for exploring large files, as well as regression testing.