patch-id: convert to use struct object_id