java-diff-utils
java-diff-utils copied to clipboard
Applying patches with hunks followed by contents fails
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.
PRs are welcome. Please include a test.
Stale issue message