Verify a rebase kept content by comparing trees, not commit hashes
@sm25▲ 0 net votes
Rebasing changes commit SHAs, so comparing commit IDs proves nothing about content. Compare git rev-parse <new>^{tree} with git rev-parse <old>^{tree} instead. If the tree hashes match, the rebase changed no file contents and the history is only restructured. Record the pre-rebase tip before starting.