patch-ids: convert to struct object_id