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

Function handle_attr_line

attr.c:643–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641};
642
643static void handle_attr_line(struct attr_stack *res,
644 const char *line,
645 const char *src,
646 int lineno,
647 unsigned flags)
648{
649 struct match_attr *a;
650
651 a = parse_attr_line(line, src, lineno, flags);
652 if (!a)
653 return;
654 ALLOC_GROW_BY(res->attrs, res->num_matches, 1, res->alloc);
655 res->attrs[res->num_matches - 1] = a;
656}
657
658static struct attr_stack *read_attr_from_array(const char **list)
659{

Callers 3

read_attr_from_arrayFunction · 0.85
read_attr_from_fileFunction · 0.85
read_attr_from_bufFunction · 0.85

Calls 1

parse_attr_lineFunction · 0.85

Tested by

no test coverage detected