git - how to get the full message from git merge --log

依然范特西╮ 提交于 2019-12-09 18:24:17

问题


After using git merge --log --no-ff --no-commit or git merge --log --squash, a long commit message is created.

But the message is cut i.e ... at the end and does not list all commits.

How do I get the full message?

I checked the files in .git/MERGE_HEAD and .git/SQUASH_HEAD and it also contains the short message with ...

Thanks


回答1:


Note that the --log option is actually --log<=n> (from git merge):

In addition to branch names, populate the log message with one-line descriptions from at most <n> actual commits that are being merged. See also git-fmt-merge-msg.

So by specifying a large number for n, you should see all the commits in the merge log message.
By default, only the first 20 commits are listed.

The config setting merge.log can also be used to specify that number.



来源:https://stackoverflow.com/questions/13503703/git-how-to-get-the-full-message-from-git-merge-log

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!