|go ahead... be a heretic|
When not to use subdiffby Tux (Canon)
|on Aug 23, 2018 at 03:05 UTC||Need Help??|
Tux has asked for the wisdom of the Perl Monks concerning the following question:
In TPC in Glasgow I released App::ccdiff, which - in short - will more clearly shows horizontal diff as well as vertical diff.
That might look like (with all verbosity on) like this screenshot
This works fine for the purpose it is written for: find tiny changes with more ease.
It however makes no sense if chunk shows a change of 4 lines to 24 lines with a completely different content, in which case you just want to see the chunk as lines-deleted + lines-added, with no markers to the changed characters in there, as that would mean that almost every character will be marked.
As I currently see it, there are multiple approaches to the fallback of the current behavior to a normal diff report:
It is possible to implement both and allow both at the same time.
Before I start coding/changing, I'd like opinions on how you would use it and/or expect it to use, in order to raise DWIM behavior
Enjoy, Have FUN! H.Merijn