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

Function packfile_list_clear

packfile.c:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static inline uintmax_t sz_fmt(size_t s) { return s; }
50
51void packfile_list_clear(struct packfile_list *list)
52{
53 struct packfile_list_entry *e, *next;
54
55 for (e = list->head; e; e = next) {
56 next = e->next;
57 free(e);
58 }
59
60 list->head = list->tail = NULL;
61}
62
63static struct packfile_list_entry *packfile_list_remove_internal(struct packfile_list *list,
64 struct packed_git *pack)

Callers 2

cleanupFunction · 0.85
packfile_store_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected