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,843
  • 16
  • 55
  • 103
  • 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
  • 95,083
  • 20
  • 220
  • 214
Raman Sharma
  • 1,940
  • 2
  • 11
  • 10