| 733 | } |
| 734 | |
| 735 | struct 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 | |
| 746 | struct commit_list *commit_list_reverse(struct commit_list *list) |
| 747 | { |
no test coverage detected