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

Method snapshot

pygit2/config.py:260–270  ·  view source on GitHub ↗

Create a snapshot from this Config object. This means that looking up multiple values will use the same version of the configuration files.

(self)

Source from the content-addressed store, hash-verified

258 check_error(err)
259
260 def snapshot(self) -> 'Config':
261 """Create a snapshot from this Config object.
262
263 This means that looking up multiple values will use the same version
264 of the configuration files.
265 """
266 ccfg = ffi.new('git_config **')
267 err = C.git_config_snapshot(ccfg, self._config)
268 check_error(err)
269
270 return Config.from_c(self._repo, ccfg[0])
271
272 #
273 # Methods to parse a string according to the git-config rules

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
from_cMethod · 0.45

Tested by

no test coverage detected