builtin/diff-tree: convert to struct object_id