| 183 | } |
| 184 | |
| 185 | struct object *lookup_unknown_object(struct repository *r, const struct object_id *oid) |
| 186 | { |
| 187 | struct object *obj = lookup_object(r, oid); |
| 188 | if (!obj) |
| 189 | obj = create_object(r, oid, alloc_object_node(r)); |
| 190 | return obj; |
| 191 | } |
| 192 | |
| 193 | struct object *lookup_object_by_type(struct repository *r, |
| 194 | const struct object_id *oid, |