Comparison for rebase and merge