Skip to content

Fix broken multiline commit messages and multiple commits - #27

Merged
chriseldredge merged 3 commits into
chriseldredge:masterfrom
legecha:master
Aug 8, 2016
Merged

Fix broken multiline commit messages and multiple commits#27
chriseldredge merged 3 commits into
chriseldredge:masterfrom
legecha:master

Conversation

@legecha

@legecha legecha commented Mar 29, 2016

Copy link
Copy Markdown
Contributor

This commit fixes both multiple commits not showing up properly, and also allows for multiple lines in a commit messages (even if grouped with multiple commits).

Changed the format of the git log so that two replacements could be made - this was instead of some huge sed script or using other tools like Perl, to keep things simple.

Tested with 1 commit single and multiline messages, and multiple commits with both single and multiline messages.

Fixes #20 and #24, simplifies the solution proposed by pull request #26 - indeed with this, #26 wouldn't be needed and as mentioned on the comments page for that pull request it doesn't work for multiline messages.

Would appreciate feedback!

@glensc

glensc commented Apr 4, 2016

Copy link
Copy Markdown

@LeonardChallis tested the patch. looks good!

@legecha

legecha commented Apr 5, 2016

Copy link
Copy Markdown
Contributor Author

@glensc Great, thanks for testing!

JoshMcCullough added a commit to JoshMcCullough/git-slack-hook that referenced this pull request May 7, 2016
@gitjoost

Copy link
Copy Markdown

Yep, patch works, thanks.

jjweston and others added 2 commits August 5, 2016 18:34
@jjweston

jjweston commented Aug 7, 2016

Copy link
Copy Markdown
Contributor

+1 on merging this pull request. I've been using this version for my own Git repositories for a while and it works great! Thank you for the fix.

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.

Commit messages garbled in notifications; sed-related

5 participants