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

Function process_trailers_lists

trailer.c:370–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void process_trailers_lists(struct list_head *head,
371 struct list_head *arg_head)
372{
373 struct list_head *pos, *p;
374 struct arg_item *arg_tok;
375
376 list_for_each_safe(pos, p, arg_head) {
377 int applied = 0;
378 arg_tok = list_entry(pos, struct arg_item, list);
379
380 list_del(pos);
381
382 applied = find_same_and_apply_arg(head, arg_tok);
383
384 if (!applied)
385 apply_arg_if_missing(head, arg_tok);
386 }
387}
388
389int trailer_set_where(enum trailer_where *item, const char *value)
390{

Callers 1

process_trailersFunction · 0.85

Calls 3

list_delFunction · 0.85
find_same_and_apply_argFunction · 0.85
apply_arg_if_missingFunction · 0.85

Tested by

no test coverage detected