Skip to content

Conversation

@bluekeyes
Copy link
Owner

While empty patches with only a header were parsable, the parser discarded the preamble content. This meant callers had to handle this case specially. Now, if we reach the end of the input without finding a file, Parse() returns the full content of the patch as the preamble.

Fixes #45.

While empty patches with only a header were parsable, the parser
discarded the preamble content. This meant callers had to handle this
case specially. Now, if we reach the end of the input without finding a
file, Parse() returns the full content of the patch as the preamble.
@bluekeyes bluekeyes merged commit 0a4e55f into master Jul 15, 2024
@bluekeyes bluekeyes deleted the bkeyes/no-files branch July 15, 2024 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support empty patches

1 participant