Git log pretty format, newline after placeholder if non-empty

早过忘川 提交于 2019-12-03 14:16:45

This is not supported natively by Git: you would have to process/parse the output to get the right result)

But this could also be the opportunity for a simple patch, much like the one which originally introduced the Pretty-format: %[+-]x mechanism: commit 9fa708d, git 1.6.6-rc1, Oct. 2009.

Maybe %[*/]x, for adding line-feed after the expansion of %x.

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