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

Function list_move

list.h:93–97  ·  view source on GitHub ↗

Delete from list, add to another list as head. */

Source from the content-addressed store, hash-verified

91
92/* Delete from list, add to another list as head. */
93static inline void list_move(struct list_head *elem, struct list_head *head)
94{
95 __list_del(elem->prev, elem->next);
96 list_add(elem, head);
97}
98
99/* Replace an old entry. */
100static inline void list_replace(struct list_head *old, struct list_head *newp)

Callers

nothing calls this directly

Calls 2

__list_delFunction · 0.85
list_addFunction · 0.85

Tested by

no test coverage detected