Skip to content

[pull] master from java-diff-utils:master#34

Merged
pull[bot] merged 3 commits into
dandycheung:masterfrom
java-diff-utils:master
May 16, 2026
Merged

[pull] master from java-diff-utils:master#34
pull[bot] merged 3 commits into
dandycheung:masterfrom
java-diff-utils:master

Conversation

@pull

@pull pull Bot commented May 16, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

aparmet-toast and others added 3 commits May 5, 2026 17:22
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 #201
Fix UnifiedDiffReader to use correct DeltaType
@pull pull Bot locked and limited conversation to collaborators May 16, 2026
@pull pull Bot added the ⤵️ pull label May 16, 2026
@pull pull Bot merged commit 6dbc008 into dandycheung:master May 16, 2026
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants