Razer
Razer

Reputation: 8211

Diff a list of commits against a single commit

I have a list of commits starting at REV1 and ending with REV2. I want to compare all changes between REV1 and REV2 against a single commit denoted with REV3.

How can this be accomplished using git?

Upvotes: 0

Views: 73

Answers (1)

Raman Sharma
Raman Sharma

Reputation: 2150

Probably this will help

for n in `git rev-list <parent of rev1>..rev2 <branch name>`; do git diff rev3 $n; done

Upvotes: 1

Related Questions