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
Describe the bug
- When parsing git diff like this
diff --git a/test/Issue.java b/test/Issue.javanew file mode 100644index 00000000..9702606eUnifiedDiffReader will throw UnifiedDiffParserException: "expected file start line not found"
I have analyze the code and found thatnew file mode 100644 can't not be recognized. But I found regex that can recognized this line in comment of methodUnifiedDiffReader#parse()
// schema = [[/^\s+/, normal], [/^diff\s/, start], [**/^new file mode \d+$/**, new_file],It seems that you intend not to recognize this, Could you please tell the reason?
The java.util.logging.Logger in UnifiedDiffReader is kind of chatty, How should I turn it off.
Is
UnifiedDiffUtils.parseUnifiedDiff()designed to only parse the first patch?
Metadata
Metadata
Assignees
Labels
No labels