Skip to content
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

commit roundtrip #1617

Merged
merged 4 commits into from
Oct 8, 2024
Merged

commit roundtrip #1617

merged 4 commits into from
Oct 8, 2024

Conversation

Byron
Copy link
Member

@Byron Byron commented Oct 8, 2024

This PR should fix the stress-test which failed by incorrectly thinking that a commit can't be round-tripped (and is thus in valid).

And maybe this kind of validation isn't correct anyway as we have a lossy parser, generally.

Previously they were normalized to \n which made round-trips
degenerate information.

It's notable that we explicitly do NOT normalize the newline
at the very last line of the multi-line header as its part
of that line, even though it's also relevant to make the header field
valid. The reason is that these *can* also be written with \r\n, and
we don't want to degenerate that information.
@Byron Byron marked this pull request as ready for review October 8, 2024 10:20
@Byron Byron enabled auto-merge October 8, 2024 10:21
@Byron Byron merged commit f35b109 into main Oct 8, 2024
16 checks passed
@Byron Byron deleted the commit-roundtrip branch October 8, 2024 11:09
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