gitgithubtig

How do I see a 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. 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?


Solution

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

    git diff HEAD~<n> | tig
    

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