| 705 | } |
| 706 | |
| 707 | struct 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 | |
| 716 | int commit_list_contains(struct commit *item, struct commit_list *list) |
| 717 | { |