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

Function commit_list_copy

commit.c:735–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735struct commit_list *commit_list_copy(const struct commit_list *list)
736{
737 struct commit_list *head = NULL;
738 struct commit_list **pp = &head;
739 while (list) {
740 pp = commit_list_append(list->item, pp);
741 list = list->next;
742 }
743 return head;
744}
745
746struct commit_list *commit_list_reverse(struct commit_list *list)
747{

Callers 5

merge_ort_internalFunction · 0.85
save_parentsFunction · 0.85
track_linearFunction · 0.85
try_to_commitFunction · 0.85
cmd_commitFunction · 0.85

Calls 1

commit_list_appendFunction · 0.85

Tested by

no test coverage detected