-
-
Notifications
You must be signed in to change notification settings - Fork 196
issues when parsing git diff #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You now this new implementation of UnifiedDiffReader was some kind of feature driven. So what was needed was implemented. This is simply missing. So I will look into it. By the way, pull requests are welcome. |
UnifiedDiffUtils is the old implementation, that only read the first patch. |
I will change the logger. |
thank you for your reply, Actually, I only need to know line numbers that was added by parsing the diff file. I have modified your code to fit my need. I will commit a PR when possible. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
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 methodUnifiedDiffReader#parse()
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?The text was updated successfully, but these errors were encountered: