Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ AsObject
Method
AsObject
commit.go:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
func
(c *Commit) AsObject() *Object {
31
return
&c.Object
32
}
33
34
func
(c *Commit) Message() string {
35
ret := C.GoString(C.git_commit_message(c.cast_ptr))
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected