-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cannot parse patch that ends with newline character change and delta on the last line #23
Comments
aurabindo
changed the title
Cannot parse patch that ends with newline indicator and delta on the last line
Cannot parse patch that ends with newline character change and delta on the last line
Feb 27, 2024
can confirm I have the same problem with https://github.com/conda-forge/pixman-feedstock/blob/main/recipe/meson-darwin-versions.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider a patch with multiple diffs. When the last diff has newline character delta, and also there is a text delta on the last line, it fails to parse. If this diff was not the last in the patch file, then it succeeds parsing.
Consider the following diff below which is last in the patch file.
This gets an error:
I tried manually removing just the last 1 lines of the diff (
+#endif
), and it succeeds parsing.The text was updated successfully, but these errors were encountered: