I am trying to see the difference between two versions of the same commit in git. The difference in differences is mainly. From what I have read so far, this is called "interdiff." I read a few tutorials on how to create interdiffs of git patches, but I was not able to get these methods to work in my particular case.
So here is the setup. I have two diverging branches, each of which has slightly different meanings:
* 29e734f - (origin/feature_branch, new_commits) New commit 3 (69 minutes ago) <Ajedi32> * b22ebea - New commit 2 (89 minutes ago) <Ajedi32> * 09d42c2 - New commit 1 (2 hours ago) <Ajedi32> | * 467e08f - (old_commits) Old commit 3 (4 weeks ago) <Ajedi32> | * f2bf1cb - Old commit 2 (4 weeks ago) <Ajedi32> | * 34a2187 - Old commit 1 (4 weeks ago) <Ajedi32> |/ * 1b05a4a - (origin/base, base) Base commit (5 weeks ago) <Ajedi32>
In this example, I want to find the interdiff between "Old commit 3" and "New commit 3". I tried to create a patch file from these two commits and run them using the interdiff utility, but all I got was the following:
1 out of 2 hunks FAILED -- saving rejects to file /tmp/interdiff-1.Kgwx8u.rej interdiff: Error applying patch1 to reconstructed file
I'm not quite sure what that means, so I'm stuck right now. Where am I going from here?
Note. I am not looking for git diff old_commits new_commits here. I do not want the changes to make 1 and 2 included in the output.
source share