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

Function object_array_pop

object.c:492–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492struct object *object_array_pop(struct object_array *array)
493{
494 struct object *ret;
495
496 if (!array->nr)
497 return NULL;
498
499 ret = array->objects[array->nr - 1].item;
500 object_array_release_entry(&array->objects[array->nr - 1]);
501 array->nr--;
502 return ret;
503}
504
505void object_array_filter(struct object_array *array,
506 object_array_each_func_t want, void *cb_data)

Callers 3

commit_is_completeFunction · 0.85
get_shallows_or_depthFunction · 0.85
traverse_reachableFunction · 0.85

Calls 1

Tested by

no test coverage detected