Retrieve git's prepared message (bytes). See `Repository.message` for more information.
(self)
| 1063 | # |
| 1064 | @property |
| 1065 | def raw_message(self) -> bytes: |
| 1066 | """ |
| 1067 | Retrieve git's prepared message (bytes). |
| 1068 | See `Repository.message` for more information. |
| 1069 | """ |
| 1070 | buf = ffi.new('git_buf *', (ffi.NULL, 0)) |
| 1071 | try: |
| 1072 | err = C.git_repository_message(buf, self._repo) |
| 1073 | if err == C.GIT_ENOTFOUND: |
| 1074 | return b'' |
| 1075 | check_error(err) |
| 1076 | return ffi.string(buf.ptr) |
| 1077 | finally: |
| 1078 | C.git_buf_dispose(buf) |
| 1079 | |
| 1080 | @property |
| 1081 | def message(self) -> str: |
nothing calls this directly
no test coverage detected