Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ TargetId
Method
TargetId
tag.go:55–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
}
54
55
func
(t *Tag) TargetId() *Oid {
56
ret := newOidFromC(C.git_tag_target_id(t.cast_ptr))
57
runtime.KeepAlive(t)
58
return
ret
59
}
60
61
func
(t *Tag) TargetType() ObjectType {
62
ret := ObjectType(C.git_tag_target_type(t.cast_ptr))
Callers
1
TestCreateTag
Function · 0.80
Calls
1
newOidFromC
Function · 0.85
Tested by
1
TestCreateTag
Function · 0.64