MCPcopy Index your code
hub / github.com/git/git / object_list_insert

Function object_list_insert

object.c:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403struct object_list *object_list_insert(struct object *item,
404 struct object_list **list_p)
405{
406 struct object_list *new_list = xmalloc(sizeof(struct object_list));
407 new_list->item = item;
408 new_list->next = *list_p;
409 *list_p = new_list;
410 return new_list;
411}
412
413int object_list_contains(struct object_list *list, struct object *obj)
414{

Callers 4

find_objectsFunction · 0.85
prepare_bitmap_walkFunction · 0.85
one_remote_objectFunction · 0.85
processFunction · 0.85

Calls 1

xmallocFunction · 0.70

Tested by

no test coverage detected