I know that you can view a diff from git with git log -p
, and you can also provide multiple commits to view their diffs.
Is there any way to view the CUMULATIVE diff of multiple commits, all at once?
Note that I don't just want to see the diff BETWEEN two commits, I want the diff introduced by EACH commit to be shown in a single, unified diff -- as if they had been applied sequentially and I did a git log -p A..B
-- but A and B are not linear in history.
The closest that I can manage is to do git merge-base
of all of the relevant commits, create a new branch, and cherry-pick each commit so they are linear.