| 381 | } |
| 382 | |
| 383 | static 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 | |
| 397 | static struct string_list *initialize_fields_list(struct string_list *fields_list, int *initialized, |
| 398 | const char *config_key) |
no test coverage detected