Pyramid Newbie
Pyramid Newbie

Reputation: 7355

Multi-line git commit message with PyCharm

Is it possible? PyCharm provides a nice textbox for editing the commit message, but it ignores line breaks and all the text end up as a single long header line in git.

I sometimes want to have a short header and then explain more later in the body and be able to see a concise header with git log --oneline

Here is a screenshot

Upvotes: 1

Views: 3470

Answers (1)

gerosalesc
gerosalesc

Reputation: 3063

Actually, Pycharm doesn't ignore line breaks, it just tries to show a commit message single lined for quick visualization purposes in some places but if you take a look at the logs' commit details you will see that the line breaks are still there. Here is a screenshot of a multi-line commit viewed from the logs:

enter image description here

Upvotes: 4

Related Questions