Skip to content

Handle commits with newlines in the message. #83

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

Closed
wants to merge 1 commit into from
Closed

Handle commits with newlines in the message. #83

wants to merge 1 commit into from

Conversation

benstiglitz
Copy link

process_commit_data was toggling between message and header parsing for every bare newline encountered in the data, which led to the elision of every other paragraph in a commit message. Now the switch to message parsing is permanent; once the headers have been found we don't need to look for them any more.

process_commit_data was toggling between message and header parsing for every bare newline encountered in the data, which led to the elision of every other paragraph in a commit message. Now the switch to message parsing is permanent; once the headers have been found we don't need to look for them any more.
@robertodecurnex
Copy link
Contributor

@benstiglitz Sadly there is a lot of information after the message 😔

It's not just a header followed by a message.

It's obviously still an issue but we have to figure out the correct way to parse it.

@benstiglitz
Copy link
Author

Looking at commit.c in the git repo it seems that there will never be any headers after the subject and message.

@robertodecurnex
Copy link
Contributor

I have tried it myself. Somehow it's reaching with a lot of information.

Just run the tests using the change and you will see how it fails.

I'll try to inspect the internals and fine a solution to this but turning
the in_message flag just once it's not working.

@robertodecurnex
Copy link
Contributor

Fixed for single commits

Still working on full_log_commits

@robertodecurnex
Copy link
Contributor

Working over full_log_commits on #125

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.

2 participants