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

Function parse_trailers_from_config

trailer.c:722–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722void parse_trailers_from_config(struct list_head *config_head)
723{
724 struct arg_item *item;
725 struct list_head *pos;
726
727 /* Add an arg item for each configured trailer with a command */
728 list_for_each(pos, &conf_head) {
729 item = list_entry(pos, struct arg_item, list);
730 if (item->conf.command)
731 add_arg_item(config_head,
732 xstrdup(token_from_item(item, NULL)),
733 xstrdup(""),
734 &item->conf, NULL);
735 }
736}
737
738void parse_trailers_from_command_line_args(struct list_head *arg_head,
739 struct list_head *new_trailer_head)

Callers 1

process_trailersFunction · 0.85

Calls 3

add_arg_itemFunction · 0.85
xstrdupFunction · 0.85
token_from_itemFunction · 0.85

Tested by

no test coverage detected