MCPcopy Index your code
hub / github.com/git/git / packfile_list_remove_internal

Function packfile_list_remove_internal

packfile.c:63–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static struct packfile_list_entry *packfile_list_remove_internal(struct packfile_list *list,
64 struct packed_git *pack)
65{
66 struct packfile_list_entry *e, *prev;
67
68 for (e = list->head, prev = NULL; e; prev = e, e = e->next) {
69 if (e->pack != pack)
70 continue;
71
72 if (prev)
73 prev->next = e->next;
74 if (list->head == e)
75 list->head = e->next;
76 if (list->tail == e)
77 list->tail = prev;
78
79 return e;
80 }
81
82 return NULL;
83}
84
85void packfile_list_remove(struct packfile_list *list, struct packed_git *pack)
86{

Callers 3

packfile_list_removeFunction · 0.85
packfile_list_prependFunction · 0.85
packfile_list_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected