Merge pull request #506 from takuji/git_commit_message_encoding

Add git_commit_message_encoding support
This commit is contained in:
Carlos Martín Nieto 2019-06-18 11:39:25 +02:00 committed by GitHub
commit b2e2b2f71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)