[英]Can I use tig to only display a given set of commits
I'd like to use tig to browse an arbitrary list of commits so that I can do something like:我想使用 tig 浏览任意提交列表,以便我可以执行以下操作:
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.
但是,我将 Joe 的一个提交视为第一个提交,但其他提交也是如此。 Even more simply if I did:
如果我这样做更简单:
echo <SHA> | tig --stdin
I want to only see that one commit.我只想看到一个提交。 Is that possible?
那可能吗? Thanks!
谢谢!
Tig accepts mostly the same arguments as "git log", so you can do Tig 接受与“git log”几乎相同的 arguments,所以你可以这样做
tig <SHA> -1
to only show one commit.只显示一个提交。 Also you can pass a commit range like
您也可以传递一个提交范围,例如
tig HEAD~10..HEAD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.