int git_tree__parse(git_tree *tree) { char *buffer, *buffer_end; assert(tree && tree->object.source.open); assert(!tree->object.in_memory); buffer = tree->object.source.raw.data; buffer_end = buffer + tree->object.source.raw.len; return tree_parse_buffer(tree, buffer, buffer_end); }
int git_tree__parse(git_tree *tree, git_odb_object *obj) { assert(tree); return tree_parse_buffer(tree, (char *)obj->raw.data, (char *)obj->raw.data + obj->raw.len); }