MCPcopy Index your code
hub / github.com/git/git / read_mailmap_line

Function read_mailmap_line

mailmap.c:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static void read_mailmap_line(struct string_list *map, char *buffer)
130{
131 char *name1 = NULL, *email1 = NULL, *name2 = NULL, *email2 = NULL;
132
133 if (buffer[0] == '#')
134 return;
135
136 if ((name2 = parse_name_and_email(buffer, &name1, &email1, 0)))
137 parse_name_and_email(name2, &name2, &email2, 1);
138
139 if (email1)
140 add_mapping(map, name1, email1, name2, email2);
141}
142
143int read_mailmap_file(struct string_list *map, const char *filename,
144 unsigned flags)

Callers 2

read_mailmap_fileFunction · 0.85
read_mailmap_stringFunction · 0.85

Calls 2

parse_name_and_emailFunction · 0.85
add_mappingFunction · 0.85

Tested by

no test coverage detected