java-diff-utils icon indicating copy to clipboard operation
java-diff-utils copied to clipboard

Applying patches with hunks followed by contents fails

Open DavideRossi opened this issue 1 year ago • 1 comments

In short, java-diff-utils assumes that a hunk is a line on its own. I'm parsing the output of git log -p that produces "inline" hunks like that: @@ -4,6 +4,9 @@ import com.github.javaparser.JavaParser; and that is not supported. I have no idea that format is OK with the unidiff specifications but the change to support that hunk format seems minimal.

DavideRossi avatar Sep 25 '22 18:09 DavideRossi

PRs are welcome. Please include a test.

wumpz avatar Sep 25 '22 20:09 wumpz