Add doc diffing to handle replacing with a changed clone