-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Refactor commit reader #34542
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
Refactor commit reader #34542
Conversation
1d6f91c
to
1f43769
Compare
I just want to highlight that Git solves this by 'cutting' out the signature, leaving only the parts of the commits that should be signed, independently of possibly unknown header fields. https://github.com/git/git/blob/cb96e1697ad6e54d11fc920c95f82977f8e438f8/commit.c#L1170-L1213 This also makes the approach more resilient against unconventionally formatted commits, I believe. |
That's what I do in this PR |
Backport #34542 by wxiaoguang Co-authored-by: wxiaoguang <[email protected]>
No description provided.