diff options
| author | Takuji Shimokawa <[email protected]> | 2019-05-10 20:31:01 +0900 |
|---|---|---|
| committer | Takuji Shimokawa <[email protected]> | 2019-05-10 20:31:01 +0900 |
| commit | fe0f562cc03d300ec351beca53b5eed7fe4b29e4 (patch) | |
| tree | 5198abf5387098b97d2383a856c2f79d17e2c388 | |
| parent | bf1e8a4338822ad2539a3876f58b15b590eb9e1f (diff) | |
Add Commit.MessageEncoding() method.
| -rw-r--r-- | commit.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |
