【发布时间】:2016-01-14 22:13:28
【问题描述】:
我想做一个 diff 就像 this one.
唯一的区别是我不想“手动”通知标签名称,我希望它们被 git 命令检索。
我知道git describe --tags 返回我的最新标签。但是上一个呢?如何获得?
基本上我想要的是:
$ git diff $(git_command_to_get_previous_tag) $(git describe --tags)
还有我不想要的:
$ git diff 1.0 2.0
【问题讨论】: