Add a config file instance to an existing config.
(self, path: str | Path, level: int = 0, force: int = 0)
| 250 | return res[0] |
| 251 | |
| 252 | def add_file(self, path: str | Path, level: int = 0, force: int = 0) -> None: |
| 253 | """Add a config file instance to an existing config.""" |
| 254 | |
| 255 | err = C.git_config_add_file_ondisk( |
| 256 | self._config, to_bytes(path), level, ffi.NULL, force |
| 257 | ) |
| 258 | check_error(err) |
| 259 | |
| 260 | def snapshot(self) -> 'Config': |
| 261 | """Create a snapshot from this Config object. |