Checks which commits have been cherry-picked between branches.