diffparser icon indicating copy to clipboard operation
diffparser copied to clipboard

Parse unified diffs with Java.

Results 25 diffparser issues
Sort by recently updated
recently updated
newest added

If a `NEUTRAL_LINE` is an empty line, the parsing does not happen correctly. Will add an example shortly.

![Screenshot from 2022-05-07 02-25-47](https://user-images.githubusercontent.com/4648201/167223803-9056c55b-86ec-4242-9c5a-019cd312866c.png) This can be updated to use ``` io.reflectoring.diffparser diffparser 1.4 ``` on [thombergs.github.io/diffparser](http://thombergs.github.io/diffparser) It is little misleading.

…ntext. Here, I tried to improve parsing of diffs: -which have an empty neutral line. This sends the parser into a search which should determine if the line is a...

The test case is as follows: ```diff diff --git a/source/org/jfree/data/DefaultKeyedValues.java b/source/org/jfree/data/DefaultKeyedValues.java index 5569198..707eb0a 100644 --- a/source/org/jfree/data/DefaultKeyedValues.java +++ b/source/org/jfree/data/DefaultKeyedValues.java @@ -315,7 +315,9 @@ public class DefaultKeyedValues implements KeyedValues, public void removeValue(int...

With current master (6efdc37) it seems that when a new file is followed by a changed file the later is omitted from the parse results. It seems to have to...

This solves #25 and similar cases by using lookahead. I also made it possible to pull in this project using Gradle's composite builds.

I have a svn diff where parsing seems to miss the start of the second class. > Index: MyClass1.java > =================================================================== > --- MyClass1.java (nonexistent) > +++ MyClass1.java (working copy)...