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

3.4k Views Asked by At

Github shows a combined diff of all the commits made on a branch in a pull request. e.g. 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?

1

There are 1 best solutions below

0
On BEST ANSWER

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.