| 165 | } |
| 166 | |
| 167 | struct tree *lookup_tree(struct repository *r, const struct object_id *oid) |
| 168 | { |
| 169 | struct object *obj = lookup_object(r, oid); |
| 170 | if (!obj) |
| 171 | return create_object(r, oid, alloc_tree_node(r)); |
| 172 | return object_as_type(obj, OBJ_TREE, 0); |
| 173 | } |
| 174 | |
| 175 | int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size) |
| 176 | { |
no test coverage detected