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

Function newSubmoduleFromC

submodule.go:28–32  ·  view source on GitHub ↗
(ptr *C.git_submodule, r *Repository)

Source from the content-addressed store, hash-verified

26}
27
28func newSubmoduleFromC(ptr *C.git_submodule, r *Repository) *Submodule {
29 s := &Submodule{ptr: ptr, r: r}
30 runtime.SetFinalizer(s, (*Submodule).Free)
31 return s
32}
33
34func (sub *Submodule) Free() {
35 runtime.SetFinalizer(sub, nil)

Callers 2

LookupMethod · 0.85
AddMethod · 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…