(self, path)
| 306 | |
| 307 | class _CommitDataCache: |
| 308 | def __init__(self, path): |
| 309 | self.path = path |
| 310 | self.data = {} |
| 311 | if os.path.exists(path): |
| 312 | self.data = self.read_from_disk() |
| 313 | else: |
| 314 | os.makedirs(Path(path).parent, exist_ok=True) |
| 315 | |
| 316 | def get(self, commit): |
| 317 | if commit not in self.data.keys(): |
nothing calls this directly
no test coverage detected