()
| 38 | } |
| 39 | |
| 40 | func (c *Commit) MessageEncoding() MessageEncoding { |
| 41 | ptr := C.git_commit_message_encoding(c.cast_ptr) |
| 42 | if ptr == nil { |
| 43 | return MessageEncodingUTF8 |
| 44 | } |
| 45 | ret := C.GoString(ptr) |
| 46 | runtime.KeepAlive(c) |
| 47 | return MessageEncoding(ret) |
| 48 | } |
| 49 | |
| 50 | func (c *Commit) RawMessage() string { |
| 51 | ret := C.GoString(C.git_commit_message_raw(c.cast_ptr)) |
nothing calls this directly
no test coverage detected