builtin/diff: convert to struct object_id