git shortlog
便於對變化進行人類可讀的總結。但是,當我從主分支選擇更改時,我使用-x
標誌到git cherry-pick
,因爲它記錄了從哪個提交中選取的。這導致了一些shortlog醜陋:git shortlog:如何排除「(從提交____挑選的櫻桃)」等等?
% 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應該意識到自己的註釋並能夠處理它們。我錯過了什麼?