(cls, centry)
| 416 | |
| 417 | @classmethod |
| 418 | def _from_c(cls, centry): |
| 419 | if centry == ffi.NULL: |
| 420 | return None |
| 421 | |
| 422 | automergeable = centry.automergeable != 0 |
| 423 | path = to_str(ffi.string(centry.path)) if centry.path else None |
| 424 | mode = FileMode(centry.mode) |
| 425 | contents = ffi.string(centry.ptr, centry.len).decode('utf-8') |
| 426 | |
| 427 | return MergeFileResult(automergeable, path, mode, contents) |
| 428 | |
| 429 | |
| 430 | class IndexEntry: |
nothing calls this directly
no test coverage detected