0

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?

Razer
  • 7,371
  • 15
  • 50
  • 98
  • This is probably relevant: https://stackoverflow.com/questions/5953767/git-want-to-iterate-through-all-commits-on-branch-and-list-files-in-each-commi – Oliver Charlesworth Nov 07 '17 at 10:06

1 Answers1

1

Probably this will help

for n in `git rev-list <parent of rev1>..rev2 <branch name>`; do git diff rev3 $n; done
Andrew Marshall
  • 92,562
  • 20
  • 215
  • 211
Raman Sharma
  • 1,680
  • 1
  • 9
  • 10