Reputation: 2671
I have 2 commits and suspect them introduce same difference. I want compare diffs introduced by these commits (not commits itself).
I can do this with next commands
$ git show ad7cfab50e63784bb3168a61101c4f17726b98f1 > d1
$ git show 4ec2d3d981948542111a04172c1d21a5524991f2 > d2
$ diff d1 d2
But may be more convenient way exists?
Upvotes: 6
Views: 2076
Reputation: 42015
You can skip the temporary files with process substitution:
diff <(git show ad7cf) <(git show 4ec2d3)
It's probably not as simple as you'd wish, but simpler.
Upvotes: 6