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

Function trailer_from_arg

trailer.c:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static struct trailer_item *trailer_from_arg(struct arg_item *arg_tok)
175{
176 struct trailer_item *new_item = xcalloc(1, sizeof(*new_item));
177 new_item->token = arg_tok->token;
178 new_item->value = arg_tok->value;
179 arg_tok->token = arg_tok->value = NULL;
180 free_arg_item(arg_tok);
181 return new_item;
182}
183
184static void add_arg_to_input_list(struct trailer_item *on_tok,
185 struct arg_item *arg_tok)

Callers 2

add_arg_to_input_listFunction · 0.85
apply_arg_if_missingFunction · 0.85

Calls 2

xcallocFunction · 0.85
free_arg_itemFunction · 0.85

Tested by

no test coverage detected