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

Function commit_list_insert

commit.c:707–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707struct commit_list *commit_list_insert(struct commit *item, struct commit_list **list_p)
708{
709 struct commit_list *new_list = xmalloc(sizeof(struct commit_list));
710 new_list->item = item;
711 new_list->next = *list_p;
712 *list_p = new_list;
713 return new_list;
714}
715
716int commit_list_contains(struct commit *item, struct commit_list *list)
717{

Callers 15

merge_ort_internalFunction · 0.85
parse_opt_merge_filterFunction · 0.85
merge_bases_manyFunction · 0.85
get_octopus_merge_basesFunction · 0.85
repo_is_descendant_ofFunction · 0.85
reduce_headsFunction · 0.85
ref_newerFunction · 0.85
get_reachable_subsetFunction · 0.85
merge_ort_genericFunction · 0.85

Calls 1

xmallocFunction · 0.70

Tested by 1

cmd__reachFunction · 0.68