Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork209
Closed
Description
I was testing the tool and I picked a random commit from this repo to do so. Let's take5338313. I accessed thediff of it by adding a.diffat the end of the URL and saved it intodiff.txt file. I then used the tool to parse it in the following way:
publicstaticvoidmain(String[]args)throwsIOException {varstream =newFileInputStream(newFile("/path/to/diff.txt"));varpatch =UnifiedDiffReader.parseUnifiedDiff(stream);patch.getFiles().forEach(f -> {System.out.println("File: " +f.getFromFile());f.getPatch().getDeltas().forEach(delta -> {System.out.println("Source: ");System.out.println(delta.getSource().getPosition());delta.getSource().getChangePosition().forEach(System.out::print);System.out.println("Target: ");System.out.println(delta.getTarget().getPosition());delta.getTarget().getChangePosition().forEach(System.out::print); }); });}
The deltagetChangePosition is justnull. Am I doing something wrong?
Metadata
Metadata
Assignees
Labels
No labels