(cls, centry)
| 482 | |
| 483 | @classmethod |
| 484 | def _from_c(cls, centry): |
| 485 | if centry == ffi.NULL: |
| 486 | return None |
| 487 | |
| 488 | entry = cls.__new__(cls) |
| 489 | entry.path = to_str(ffi.string(centry.path)) |
| 490 | entry.mode = FileMode(centry.mode) |
| 491 | entry.id = Oid(raw=bytes(ffi.buffer(ffi.addressof(centry, 'id'))[:])) |
| 492 | |
| 493 | return entry |
| 494 | |
| 495 | |
| 496 | class ConflictCollection: |
no test coverage detected