MCPcopy Create free account
hub / github.com/libgit2/pygit2 / raw_message

Method raw_message

pygit2/repository.py:1065–1078  ·  view source on GitHub ↗

Retrieve git's prepared message (bytes). See `Repository.message` for more information.

(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
stringMethod · 0.80

Tested by

no test coverage detected