| 1287 | } |
| 1288 | |
| 1289 | struct pattern_list *add_pattern_list(struct dir_struct *dir, |
| 1290 | int group_type, const char *src) |
| 1291 | { |
| 1292 | struct pattern_list *pl; |
| 1293 | struct exclude_list_group *group; |
| 1294 | |
| 1295 | group = &dir->internal.exclude_list_group[group_type]; |
| 1296 | ALLOC_GROW(group->pl, group->nr + 1, group->alloc); |
| 1297 | pl = &group->pl[group->nr++]; |
| 1298 | memset(pl, 0, sizeof(*pl)); |
| 1299 | pl->src = src; |
| 1300 | return pl; |
| 1301 | } |
| 1302 | |
| 1303 | /* |
| 1304 | * Used to set up core.excludesfile and .git/info/exclude lists. |
no outgoing calls
no test coverage detected