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

Function allocTag

object.go:176–187  ·  view source on GitHub ↗
(ptr *C.git_tag, repo *Repository)

Source from the content-addressed store, hash-verified

174}
175
176func allocTag(ptr *C.git_tag, repo *Repository) *Tag {
177 tag := &Tag{
178 Object: Object{
179 ptr: (*C.git_object)(ptr),
180 repo: repo,
181 },
182 cast_ptr: ptr,
183 }
184 runtime.SetFinalizer(tag, (*Tag).Free)
185
186 return tag
187}
188
189func (o *Object) AsTag() (*Tag, error) {
190 cobj, err := dupObject(o, ObjectTag)

Callers 1

AsTagMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…