diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-06-18 11:39:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-18 11:39:25 +0200 |
| commit | b2e2b2f71bb47ae3d4cfde07b39f524f13d0df93 (patch) | |
| tree | eba6339bf98a79634186518316b775d0bc617ec7 /commit.go | |
| parent | 4fa93499429f056b0d7c6e2634b9f17d29df96b3 (diff) | |
| parent | fe0f562cc03d300ec351beca53b5eed7fe4b29e4 (diff) | |
Merge pull request #506 from takuji/git_commit_message_encoding
Add git_commit_message_encoding support
Diffstat (limited to 'commit.go')
| -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) |
