java-diff-utils / java-diff-utils

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 them, generating diff output for easy future displaying (like side-by-side view) and so on.

Home Page:https://java-diff-utils.github.io/java-diff-utils/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple renames makes diff be parsed incorreclty

machadoit opened this issue · comments

Describe the bug
If there is a simple rename in the middle of the file, the parser will keep consuming information from the next diff command

To Reproduce
Change one of the test case for renames to have a simple rename as showcased here #184

Expected behavior
The test should still have the same number of UnifiedDiffFile elements, and not having a UnifiedDiffFile that will consist of a mix of multiple diff blocks

Stale issue message