Closed
Description
Describe the bug
- When parsing git diff like this
diff --git a/test/Issue.java b/test/Issue.java
new file mode 100644
index 00000000..9702606e
UnifiedDiffReader will throw UnifiedDiffParserException: "expected file start line not found"
I have analyze the code and found that new file mode 100644
can't not be recognized. But I found regex that can recognized this line in comment of method UnifiedDiffReader#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