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

Function new_object

builtin/fast-import.c:487–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487static struct object_entry *new_object(struct object_id *oid)
488{
489 struct object_entry *e;
490
491 if (blocks->next_free == blocks->end)
492 alloc_objects(object_entry_alloc);
493
494 e = blocks->next_free++;
495 oidcpy(&e->idx.oid, oid);
496 return e;
497}
498
499static struct object_entry *find_object(struct object_id *oid)
500{

Callers 1

insert_objectFunction · 0.85

Calls 2

alloc_objectsFunction · 0.85
oidcpyFunction · 0.85

Tested by

no test coverage detected