git shortlog
便于制作人类可读的更改摘要。但是,当我从主分支中挑选更改时,我使用该-x
标志,git cherry-pick
因为它记录了它选择的提交。这会导致短日志中的一些丑陋:
% git shortlog Version-3.5.3..3.5
Dan S (5):
Fix typo that causes build fail on big-endian archs, thanks Felipe Sateler (cherry picked from commit 4588258193072cd2fb845f7fb0b4670d6ad5edf2)
fix build on ARM (where qreal==float); thanks Felipe Sateler (cherry picked from commit 976d560060185c1e31c9f40660172f0054a4a05c)
Strip gremlin characters from JITLib wrapForNodeProxy.sc (cherry picked from commit d0842acae77a90b5eb9811d947ee2dad2282edff)
choose clipping rather than wraparound for writing integer-format audio files (libsndfile setting)
arm build fix: another double->qreal in QcMultiSlider (cherry picked from commit 548ad319dddf53e4edac1cfa44b3193027eefda2)
有没有一种简单的方法可以告诉git shortlog
我们不想要那些精选的行(在实际日志中的新行上)?
当然,我知道可以将它们过滤掉,例如使用git shortlog Version-3.5.3..3.5 | sed 's/[(]cherry picked.*$//g'
. 但似乎git应该知道自己的注释并能够处理它们。我错过了什么?