returns enum object_type or negative */
| 715 | |
| 716 | /* returns enum object_type or negative */ |
| 717 | int odb_read_object_info(struct object_database *odb, |
| 718 | const struct object_id *oid, |
| 719 | size_t *sizep) |
| 720 | { |
| 721 | enum object_type type; |
| 722 | struct object_info oi = OBJECT_INFO_INIT; |
| 723 | |
| 724 | oi.typep = &type; |
| 725 | oi.sizep = sizep; |
| 726 | if (odb_read_object_info_extended(odb, oid, &oi, |
| 727 | OBJECT_INFO_LOOKUP_REPLACE) < 0) |
| 728 | return -1; |
| 729 | return type; |
| 730 | } |
| 731 | |
| 732 | int odb_pretend_object(struct object_database *odb, |
| 733 | void *buf, size_t len, enum object_type type, |
no test coverage detected