MCPcopy Create free account
hub / github.com/git/git / packfile_list_prepend

Function packfile_list_prepend

packfile.c:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void 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
106void packfile_list_append(struct packfile_list *list, struct packed_git *pack)
107{

Callers 3

find_pack_entryFunction · 0.85

Calls 2

xmallocFunction · 0.70

Tested by

no test coverage detected