Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix message trailer parsing#6761

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethomson merged 2 commits intomainfromethomson/message_trailer
Mar 16, 2024
Merged

Fix message trailer parsing#6761

ethomson merged 2 commits intomainfromethomson/message_trailer
Mar 16, 2024

Conversation

ethomson
Copy link
Member

Update message trailer parsing to match git behavior for ignoring patch attachments.

Fixes#6760

We never test the lengths of the two arrays, so a short return from`git_message_trailers` will match erroneously.
Git looks explicitly for `---` followed by whitespace (`isspace()`) todetermine when a patch line begins in a commit message. Match thatbehavior. This ensures that we don't treat (say) `----` as a patch lineincorrectly.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

---- in commit message breaks trailer parsing
1 participant
@ethomson

[8]ページ先頭

©2009-2025 Movatter.jp