MCPcopy Create free account
hub / github.com/libgit2/pygit2 / config

Method config

pygit2/repository.py:291–302  ·  view source on GitHub ↗

The configuration file for this repository. If a the configuration hasn't been set yet, the default config for repository will be returned, including global and system configurations (if they are available).

(self)

Source from the content-addressed store, hash-verified

289 #
290 @property
291 def config(self) -> Config:
292 """The configuration file for this repository.
293
294 If a the configuration hasn't been set yet, the default config for
295 repository will be returned, including global and system configurations
296 (if they are available).
297 """
298 cconfig = ffi.new('git_config **')
299 err = C.git_repository_config(cconfig, self._repo)
300 check_error(err)
301
302 return Config.from_c(self, cconfig[0])
303
304 @property
305 def config_snapshot(self):

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
from_cMethod · 0.45

Tested by

no test coverage detected