builtin/commit-tree: convert to struct object_id