| 1783 | } |
| 1784 | |
| 1785 | static void insert_object_entry(struct mark_set **s, struct object_id *oid, uintmax_t mark) |
| 1786 | { |
| 1787 | struct object_entry *e; |
| 1788 | e = find_object(oid); |
| 1789 | if (!e) { |
| 1790 | enum object_type type = odb_read_object_info(the_repository->objects, |
| 1791 | oid, NULL); |
| 1792 | if (type < 0) |
| 1793 | die(_("object not found: %s"), oid_to_hex(oid)); |
| 1794 | e = insert_object(oid); |
| 1795 | e->type = type; |
| 1796 | e->pack_id = MAX_PACK_ID; |
| 1797 | e->idx.offset = 1; /* just not zero! */ |
| 1798 | } |
| 1799 | insert_mark(s, mark, e); |
| 1800 | } |
| 1801 | |
| 1802 | static void insert_oid_entry(struct mark_set **s, struct object_id *oid, uintmax_t mark) |
| 1803 | { |
nothing calls this directly
no test coverage detected