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

Function list_replace_init

list.h:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static inline void list_replace_init(struct list_head *old,
160 struct list_head *newp)
161{
162 struct list_head *head = old->next;
163
164 list_del(old);
165 list_add_tail(newp, head);
166 INIT_LIST_HEAD(old);
167}
168
169/*
170 * This is exactly the same as a normal list_head, except that it can be

Callers

nothing calls this directly

Calls 2

list_delFunction · 0.85
list_add_tailFunction · 0.85

Tested by

no test coverage detected