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

Method _from_found_config

pygit2/config.py:297–304  ·  view source on GitHub ↗
(fn: Callable)

Source from the content-addressed store, hash-verified

295
296 @staticmethod
297 def _from_found_config(fn: Callable) -> 'Config':
298 buf = ffi.new('git_buf *', (ffi.NULL, 0))
299 err = fn(buf)
300 check_error(err, io=True)
301 cpath = ffi.string(buf.ptr).decode('utf-8')
302 C.git_buf_dispose(buf)
303
304 return Config(cpath)
305
306 @staticmethod
307 def get_system_config() -> 'Config':

Callers 3

get_system_configMethod · 0.80
get_global_configMethod · 0.80
get_xdg_configMethod · 0.80

Calls 3

check_errorFunction · 0.85
ConfigClass · 0.85
stringMethod · 0.80

Tested by

no test coverage detected