(text: str)
| 283 | |
| 284 | @staticmethod |
| 285 | def parse_int(text: str) -> int: |
| 286 | res = ffi.new('int64_t *') |
| 287 | err = C.git_config_parse_int64(res, to_bytes(text)) |
| 288 | check_error(err) |
| 289 | |
| 290 | return res[0] |
| 291 | |
| 292 | # |
| 293 | # Static methods to get specialized version of the config |