【发布时间】:2019-09-30 21:03:49
【问题描述】:
我正在将我的 git 日志自定义为全部在 1 行中。具体来说,我添加了以下别名:
lg = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%an%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
所以,当我运行 git lg 时,我看到以下内容:
* 41a49ad - zain - commit 1 message here (3 hours ago)
* 6087812 - zain - commit 2 message here (5 hours ago)
* 74842dd - zain - commit 3 message here (6 hours ago)
但是,我也想在其中添加 SVN 修订号,所以它看起来像:
* 41a49ad - r1593 - zain - commit 1 message here (3 hours ago)
普通的git log 会显示SVN 修订号,所以我确信这一定是可能的。我该怎么做呢?
【问题讨论】: