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

Function fields_from_config

promisor-remote.c:383–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383static char *fields_from_config(struct string_list *fields_list, const char *config_key)
384{
385 char *fields = NULL;
386
387 if (!repo_config_get_string(the_repository, config_key, &fields) && *fields) {
388 string_list_split_in_place_f(fields_list, fields, ",", -1,
389 STRING_LIST_SPLIT_TRIM |
390 STRING_LIST_SPLIT_NONEMPTY);
391 filter_string_list(fields_list, 0, is_valid_field, (void *)config_key);
392 }
393
394 return fields;
395}
396
397static struct string_list *initialize_fields_list(struct string_list *fields_list, int *initialized,
398 const char *config_key)

Callers 1

initialize_fields_listFunction · 0.85

Calls 3

repo_config_get_stringFunction · 0.85
filter_string_listFunction · 0.85

Tested by

no test coverage detected