Add git_commit_message_encoding support #506

Merged
takuji merged 1 commits from git_commit_message_encoding into master 2019-06-18 04:39:26 -05:00
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)