简体   繁体   中英

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:

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!

Tig accepts mostly the same arguments as "git log", so you can do

tig <SHA> -1

to only show one commit. Also you can pass a commit range like

tig HEAD~10..HEAD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM