mmanela / diffplex

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

Customise skipping of lines #110

Open rudralahiri opened 1 year ago

rudralahiri commented 1 year ago

I am trying to compare 2 files and would like the Differ to skip lines when it matches a pattern defined in a list.

Say in a file, I want the Differ to ignore the line which contains the phrase "Updated Version" or "page no." Can you provide me with an example if its possible? Thanks

mmanela commented 11 months ago

You could just post-process the result if it is from a line with that phrase and ignore the diff result

rudralahiri commented 11 months ago

Thanks Mathew. Great idea. Will be trying this out.