summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuji Shimokawa <[email protected]>2019-05-10 20:31:01 +0900
committerTakuji Shimokawa <[email protected]>2019-05-10 20:31:01 +0900
commitfe0f562cc03d300ec351beca53b5eed7fe4b29e4 (patch)
tree5198abf5387098b97d2383a856c2f79d17e2c388
parentbf1e8a4338822ad2539a3876f58b15b590eb9e1f (diff)
Add Commit.MessageEncoding() method.
-rw-r--r--commit.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit.go b/commit.go
index 0ab720d..4262060 100644
--- a/commit.go
+++ b/commit.go
@@ -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)