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

Method config_snapshot

pygit2/repository.py:305–315  ·  view source on GitHub ↗

A snapshot for this repositiory's configuration This allows reads over multiple values to use the same version of the configuration files.

(self)

Source from the content-addressed store, hash-verified

303
304 @property
305 def config_snapshot(self):
306 """A snapshot for this repositiory's configuration
307
308 This allows reads over multiple values to use the same version
309 of the configuration files.
310 """
311 cconfig = ffi.new('git_config **')
312 err = C.git_repository_config_snapshot(cconfig, self._repo)
313 check_error(err)
314
315 return Config.from_c(self, cconfig[0])
316
317 #
318 # References

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
from_cMethod · 0.45

Tested by

no test coverage detected