MCPcopy Create free account
hub / github.com/libgit2/git2go / MessageEncoding

Method MessageEncoding

commit.go:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (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
50func (c *Commit) RawMessage() string {
51 ret := C.GoString(C.git_commit_message_raw(c.cast_ptr))

Callers

nothing calls this directly

Calls 1

MessageEncodingTypeAlias · 0.85

Tested by

no test coverage detected