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

Function add_pattern_list

dir.c:1289–1301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1287}
1288
1289struct 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.

Callers 6

add_patterns_from_file_1Function · 0.85
prep_excludeFunction · 0.85
get_untracked_filesFunction · 0.85
cmd_ls_filesFunction · 0.85
filter_by_patterns_cmdFunction · 0.85
cmd_cleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected