| 309 | } |
| 310 | |
| 311 | struct object *parse_object_or_die(struct repository *repo, |
| 312 | const struct object_id *oid, |
| 313 | const char *name) |
| 314 | { |
| 315 | struct object *o = parse_object(repo, oid); |
| 316 | if (o) |
| 317 | return o; |
| 318 | |
| 319 | die(_("unable to parse object: %s"), name ? name : oid_to_hex(oid)); |
| 320 | } |
| 321 | |
| 322 | struct object *parse_object_with_flags(struct repository *r, |
| 323 | const struct object_id *oid, |
no test coverage detected