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

Method parse_bool

pygit2/config.py:277–282  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

275
276 @staticmethod
277 def parse_bool(text: str) -> bool:
278 res = ffi.new('int *')
279 err = C.git_config_parse_bool(res, to_bytes(text))
280 check_error(err)
281
282 return res[0] != 0
283
284 @staticmethod
285 def parse_int(text: str) -> int:

Callers 1

test_parsingFunction · 0.80

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by 1

test_parsingFunction · 0.64