DeepDiffs.jl icon indicating copy to clipboard operation
DeepDiffs.jl copied to clipboard

Flag to limit number of unchanged lines to show when displaying deep multiline diff

Open oxinabox opened this issue 6 years ago • 2 comments

When a diff is shown e.g on github, is is common to only show a certain amount of context around the changed lines. Showing ... and for skipped characters/lines So as to limit the amount of unchanged content to display,

Since I generally not interested in knowing about the 10,000 lines that did not change. Only in the 20 that did.

I am thinking something like deepdiff(orig, modified; displayafter=5, displaybefore=5) These arguments could default to typemax(Int) to maintain current behavior.

What to do with single line diffs is another question. I think it might be reasonable to do limits oncharacters before and after in he same way.

oxinabox avatar Jun 30 '18 10:06 oxinabox