mmanela / diffplex

DiffPlex is Netstandard 1.0+ C# library to generate textual diffs.
Apache License 2.0
996 stars 183 forks source link

Added new Diff on both DiffBuilders for more detailed DiffModel. #83

Open driekus77 opened 3 years ago

driekus77 commented 3 years ago

See Issue #29

Added on both InlineDiffBuilder and SideBySideDiffBuilder possibility to add more details by providing a detailsPack of IChunker(s).

The InlineDiffBuilder on lowest level, is still missing the old / before char info. Didn't know where to put it: After or Under(SubPiece) the new / after char. Advice / help is welcome!

In order to not introduce any breaking changes in the API I introduced new Diff overload methods. These method(s) distinguish themselves by a detailsPack (Name oke?) that include the IChunkers to use. If null then default all 3 chunkers are used: Lines => Words => Characters.

Review comments are welcome!

Thanks for this great lib!

ldsenow commented 2 years ago

Hi guys, i am wondering why we dont merge this PR? It is very useful for inline diff to have subpieces.

mmanela commented 2 years ago

There are unresolved comments I believe.