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

Method Target

tag.go:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func (t *Tag) Target() *Object {
45 var ptr *C.git_object
46 ret := C.git_tag_target(&ptr, t.cast_ptr)
47 runtime.KeepAlive(t)
48 if ret != 0 {
49 return nil
50 }
51
52 return allocObject(ptr, t.repo)
53}
54
55func (t *Tag) TargetId() *Oid {
56 ret := newOidFromC(C.git_tag_target_id(t.cast_ptr))

Callers 7

headCommitFunction · 0.45
prepareStashRepoFunction · 0.45
TestResetToCommitFunction · 0.45
updateReadmeFunction · 0.45
TestApplyDiffAddfileFunction · 0.45
TestRefModificationFunction · 0.45
TestCreateTagLightweightFunction · 0.45

Calls 1

allocObjectFunction · 0.85

Tested by 7

headCommitFunction · 0.36
prepareStashRepoFunction · 0.36
TestResetToCommitFunction · 0.36
updateReadmeFunction · 0.36
TestApplyDiffAddfileFunction · 0.36
TestRefModificationFunction · 0.36
TestCreateTagLightweightFunction · 0.36