builtin/prune: convert to struct object_id