Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ toC
Method
toC
git.go:215–217 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
213
}
214
215
func
(oid *Oid) toC() *C.git_oid {
216
return
(*C.git_oid)(unsafe.Pointer(oid))
217
}
218
219
func
NewOid(s string) (*Oid, error) {
220
if
len(s) > C.GIT_OID_HEXSZ {
Callers
15
commitCreateCallback
Function · 0.45
Commit
Method · 0.45
populateCIndexEntry
Function · 0.45
WriteTreeTo
Method · 0.45
WriteTree
Method · 0.45
lookupType
Method · 0.45
lookupPrefixType
Method · 0.45
SetHeadDetached
Method · 0.45
CreateCommit
Method · 0.45
CreateCommitWithSignature
Method · 0.45
CreateCommitBuffer
Method · 0.45
CreateCommitFromIds
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected