每次我进行合并时,我都需要生成一个合并提交,并且我希望它不仅仅是所有提交的摘要。
我的问题是如何格式化 git-fmt-merge-msg 或什么决定了这条自动消息(我可以在提交后通过修改它并使用 git-log --pretty=format:'...' 手动执行此操作)
例如,我想将其格式化为:
Merge branch 'test'
* test:
[BZ: #123] fifth commit subject
[BZ: #123] fourth commit subject
[BZ: #123] third commit subject
[BZ: #123] second commit subject
[BZ: #123] first commit subject
__________________________________________
Merge details:
[BZ: #123] fifth commit subject
at 2010-06-30 11:29:00 +0100
- fifth commit body
[BZ: #123] fourth commit subject
at 2010-06-30 11:22:17 +0100
- fourth commit body
[BZ: #123] third commit subject
at 2010-06-30 11:21:43 +0100
- third commit body
[BZ: #123] second commit subject
at 2010-06-30 11:21:30 +0100
- second commit body
[BZ: #123] first commit subject
at 2010-06-30 11:29:57 +0100
- first commit body