Skip to content

Conversation

bluekeyes
Copy link
Owner

This function parses patch headers (the preamble returned by the
existing Parse function) to extract information about the commit that
generated the patch. This is useful when patches are an interchange
format and this library is applying commits generated elsewhere.

Because of the variety of header formats, parsing is fairly lenient and
best-effort, although certain invalid input does cause errors.

This also extracts some test utilities from the apply tests for reuse.

This function parses patch headers (the preamble returned by the
existing Parse function) to extract information about the commit that
generated the patch. This is useful when patches are an interchange
format and this library is applying commits generated elsewhere.

Because of the variety of header formats, parsing is fairly lenient and
best-effort, although certain invalid input does cause errors.

This also extracts some test utilities from the apply tests for reuse.
@bluekeyes bluekeyes force-pushed the bkeyes/patch-header branch from be74c98 to 53a7d66 Compare April 19, 2020 05:20
@bluekeyes bluekeyes merged commit f0da09b into master Apr 19, 2020
@bluekeyes bluekeyes deleted the bkeyes/patch-header branch April 19, 2020 05:21
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.

1 participant