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

Function add_trailer_item

trailer.c:693–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693static struct trailer_item *add_trailer_item(struct list_head *head, char *tok,
694 char *val)
695{
696 struct trailer_item *new_item = xcalloc(1, sizeof(*new_item));
697 new_item->token = tok;
698 new_item->value = val;
699 list_add_tail(&new_item->list, head);
700 return new_item;
701}
702
703static void add_arg_item(struct list_head *arg_head, char *tok, char *val,
704 const struct conf_info *conf,

Callers 1

parse_trailersFunction · 0.85

Calls 2

xcallocFunction · 0.85
list_add_tailFunction · 0.85

Tested by

no test coverage detected