Add Commit.MessageEncoding() method.

This commit is contained in:
Takuji Shimokawa 2019-05-10 20:31:01 +09:00
parent bf1e8a4338
commit fe0f562cc0
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@ func (c *Commit) Message() string {
return ret
}
func (c *Commit) MessageEncoding() string {
ret := C.GoString(C.git_commit_message_encoding(c.cast_ptr))
runtime.KeepAlive(c)
return ret
}
func (c *Commit) RawMessage() string {
ret := C.GoString(C.git_commit_message_raw(c.cast_ptr))
runtime.KeepAlive(c)