(text: str)
| 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: |