If there is no parent commit, compare it with an empty tree.