| 1409 | } |
| 1410 | |
| 1411 | int git_config_from_file_with_options(config_fn_t fn, const char *filename, |
| 1412 | void *data, enum config_scope scope, |
| 1413 | const struct config_options *opts) |
| 1414 | { |
| 1415 | int ret = -1; |
| 1416 | FILE *f; |
| 1417 | |
| 1418 | if (!filename) |
| 1419 | BUG("filename cannot be NULL"); |
| 1420 | f = fopen_or_warn(filename, "r"); |
| 1421 | if (f) { |
| 1422 | ret = do_config_from_file(fn, CONFIG_ORIGIN_FILE, filename, |
| 1423 | f, data, scope, opts); |
| 1424 | fclose(f); |
| 1425 | } |
| 1426 | return ret; |
| 1427 | } |
| 1428 | |
| 1429 | int git_config_from_file(config_fn_t fn, const char *filename, void *data) |
| 1430 | { |
no test coverage detected