title: Is there a way to check if two different git commits are equal in content?
body: <p>I know that git tracks content and generates a sha based partially on the content. However, the sha is also based upon the parent commit.
  When I rebase a branch, because my commits now have a different ancestor, all of my commits have different shas.</p>
  
  <p>But what I'm wondering, is there a way to compare two commits (or commit ranges) to see if content-wise, they are the same?
  This should also be able to tell if a binary change is the same as well.</p>
  
  <p>I'm thinking if there was some way to get the sha for the content without the ancestor information incorporated, that might do it.</p>
  
  <p>Thanks for any and all help,</p>