MCPcopy Create free account
hub / github.com/git/git / insert_object_entry

Function insert_object_entry

builtin/fast-import.c:1785–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1783}
1784
1785static 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
1802static void insert_oid_entry(struct mark_set **s, struct object_id *oid, uintmax_t mark)
1803{

Callers

nothing calls this directly

Calls 6

find_objectFunction · 0.85
odb_read_object_infoFunction · 0.85
oid_to_hexFunction · 0.85
insert_objectFunction · 0.85
insert_markFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected