0

I'd like to use tig to browse an arbitrary list of commits so that I can do something like:

git rev-list --author joe | tig --stdin

and then only see Joe's commits. However, I see one of Joe's commits as the first one, but then other commits too. Even more simply if I did:

echo <SHA> | tig --stdin

I want to only see that one commit. Is that possible? Thanks!

4

1 回答 1

0

Tig 接受与“git log”几乎相同的参数,所以你可以这样做

tig <SHA> -1

只显示一个提交。您也可以传递一个提交范围,例如

tig HEAD~10..HEAD
于 2021-11-27T16:16:28.410 回答