- Package:
- diffoscope
- Source:
- diffoscope
- Submitter:
- Paul Wise
- Date:
- 2018-12-15 15:03:51 UTC
- Severity:
- wishlist
The HTML output uses a side-by-side diff but the terminal output uses `diff -u` style output. It would be nice to have an option for side-by-side diffs with the terminal output. The icdiff package contains a Python 3 module that could be used for this.
Hi Paul, I think this could be made to work. As a demo, I just knocked together:
Looks good. Hmm, I would have thought the recursion level could be determined at the time the data is being extracted from the data structure? How is the recursion level determined right now?
Hi Paul, I didn't really check at the time, it was mostly a gut feel & braindump in case anyone else was moved to try and implement this. (You saw the scrappiness of the diff, right?) It's either just not present where need it to be (ie. we simply aren't passing some parameters around or something quote-unquote-trivial), or we really don't know it. Regards,
Chris Lamb wrote: … whilst I'm doing that, note that we have a `SideBySideDiff` class which could potentially work (or be reworked) for this. (This would require moving around where we colourise the diff output; we obviously want the left and right hand columns to be coloured separately rather than it being coloured on a line-by-line basis.) Regards,
forwarded 908992 https://salsa.debian.org/reproducible-builds/diffoscope/issues/37 thanks I've forwarded this upstream here: https://salsa.debian.org/reproducible-builds/diffoscope/issues/37 Regards,