我经常使用 git show
来查看某个 commit 的具体修改. 但 git-show
不会显示 merge commit diff.
这是因为 merge commit 有多个 parent. man 中没有给出任何有关的选项.
经常我需要在主线代码上 (仓库采用 github-flow) 查看其它人的修改.
一个方便的命令是 tig --first-parent -m --find-copies-harder
.
试了一下,git-show
也接受 --first-parent
参数,输出也确实是想要的.