2

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?

Waseem
  • 8,232
  • 9
  • 43
  • 54

1 Answers1

8

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250