Comparing mb720:ba00888...java-diff-utils:5e2e5b9 · mb720/java-diff-utils
Commits on Oct 5, 2025
Commits on Dec 10, 2025
-
feat(diffrow): add processEqualities hook and ensure equalities are p…
…rocessed for unchanged lines (Fixes java-diff-utils#219) (java-diff-utils#224) - Introduces a new protected method `processEqualities(String)` in DiffRowGenerator - Builder exposes `.processEqualities(Function<String,String>)` - Equal (unchanged) lines now invoke processEqualities() - Inline diffs remain unchanged (as expected in Option 3) - Added new test suite DiffRowGeneratorEqualitiesTest - Updated documentation and Javadoc for new extension point - Fixes java-diff-utils#219 (HTML escaping issue when inline diff by word) Co-authored-by: Tushar Soni <tushar.soni@siemens.com>
Commits on May 5, 2026
-
Fix UnifiedDiffReader to use correct DeltaType
finalizeChunk() previously always created ChangeDelta regardless of whether the hunk contained only insertions, only deletions, or only context lines. This made it impossible for consumers to determine the actual type of change from the delta alone. Now uses InsertDelta when a hunk contains only additions (no context), DeleteDelta when only deletions (no context), EqualDelta when only context, and ChangeDelta otherwise. Hunks with context lines still use ChangeDelta to preserve backward-compatible applyTo behavior. Fixes java-diff-utils#201