Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ Id
Method
Id
object.go:54–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
}
53
54
func
(o *Object) Id() *Oid {
55
ret := newOidFromC(C.git_object_id(o.ptr))
56
runtime.KeepAlive(o)
57
return
ret
58
}
59
60
func
(o *Object) ShortId() (string, error) {
61
resultBuf := C.git_buf{}
Callers
1
TestObjectPoymorphism
Function · 0.95
Calls
1
newOidFromC
Function · 0.85
Tested by
1
TestObjectPoymorphism
Function · 0.76