#908992 diffoscope: side-by-side diff for terminal output

#908992#5
Date:
2018-09-17 06:41:36 UTC
From:
To:
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.

#908992#10
Date:
2018-11-26 21:58:18 UTC
From:
To:
Hi Paul,

I think this could be made to work. As a demo, I just knocked
together:

#908992#15
Date:
2018-11-27 03:11:37 UTC
From:
To:
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?

#908992#20
Date:
2018-11-27 07:36:49 UTC
From:
To:
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,

#908992#25
Date:
2018-11-27 13:18:47 UTC
From:
To:
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,

#908992#30
Date:
2018-12-15 15:00:49 UTC
From:
To:
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,