| 88 | } |
| 89 | |
| 90 | void packfile_list_prepend(struct packfile_list *list, struct packed_git *pack) |
| 91 | { |
| 92 | struct packfile_list_entry *entry; |
| 93 | |
| 94 | entry = packfile_list_remove_internal(list, pack); |
| 95 | if (!entry) { |
| 96 | entry = xmalloc(sizeof(*entry)); |
| 97 | entry->pack = pack; |
| 98 | } |
| 99 | entry->next = list->head; |
| 100 | |
| 101 | list->head = entry; |
| 102 | if (!list->tail) |
| 103 | list->tail = entry; |
| 104 | } |
| 105 | |
| 106 | void packfile_list_append(struct packfile_list *list, struct packed_git *pack) |
| 107 | { |
no test coverage detected