简体   繁体   中英

How do I see combined diff for a range of commits in tig?

Github shows a combined diff of all the commits made on a branch in a pull request. eg this pull request has three commits and Github shows a combined diff for all those three commits.

In git itself I can do something like git diff HEAD~<n> to see a combined diff of n commits.

How do I do the same in tig?

Following " How do I use tig to view the diff for a file which is changed but not commited? ", the possible workaround for now would be:

git diff HEAD~<n> | tig

The tig manual only mentions diff options , but doesn't allow to diff anything else but the previous commit.

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