Read values into protected_config. */
| 2445 | |
| 2446 | /* Read values into protected_config. */ |
| 2447 | static void read_protected_config(void) |
| 2448 | { |
| 2449 | struct config_options opts = { |
| 2450 | .respect_includes = 1, |
| 2451 | .ignore_repo = 1, |
| 2452 | .ignore_worktree = 1, |
| 2453 | .system_gently = 1, |
| 2454 | }; |
| 2455 | |
| 2456 | git_configset_init(&protected_config); |
| 2457 | config_with_options(config_set_callback, &protected_config, NULL, |
| 2458 | NULL, &opts); |
| 2459 | } |
| 2460 | |
| 2461 | void git_protected_config(config_fn_t fn, void *data) |
| 2462 | { |
no test coverage detected