java-diff-utils
java-diff-utils copied to clipboard
Diff Utils library is an OpenSource library for performing the comparison / diff operations between texts or some kind of data: computing diffs, applying patches, generating unified diffs or parsing t...
Update minor version in example.
# Motivation I'm using java-diff-utils to update lists in JPA models from a DTOs. As Hibernate uses proxies and records any removal/add/swap, but has it's problems when using clear/addAll, this...
I am trying to parse a rather large diff file with `UnifiedDiff udf = UnifiedDiffReader.parseUnifiedDiff(diff);` It is choking on the file and giving me the error message: ``` Jul 28,...
Hello. Does the library only support txt files? Binary files not?
**Describe the bug** I would expect an implementation of the Myers diff algorithm to behave (at least asymptotically) equal. Unfortunately, this is not the case for this implementation: Starting with...
**Describe the bug** When comparing two LinkedList-Instances, the performance is very poor. I compared ~1,1 million lines, and VisualVM showed me that several minutes where spent at https://github.com/java-diff-utils/java-diff-utils/blob/bc65f9703c137b3a7d2906eeaf064588dd36c125/java-diff-utils/src/main/java/com/github/difflib/algorithm/myers/MeyersDiff.java#L115. With an...
**Describe the bug** I suspect CONFLICT_PRODUCES_MERGE_CONFLICT does not produce correct output. **To Reproduce** Steps to reproduce the behavior: 1. Example data BASE Imagine there's no heaven LEFT Imagine there's no...
Since version 4.10 of the library, diffs are recognizing less similarity between texts. In the attached program, under version 4.9, the library correctly recognizes that there is only a 5-character...
**Describe the bug** When adding a new line to a file it is ignored **To Reproduce** Steps to reproduce the behavior: 1. Using the following test (kotlin) ``` val beforeContent...
Trying to generate three-way merge using diff and applyTo. Is there a functionality to require a context between adjacent modifications? This would be reported as a conflict by git diff,...