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

Method FinalizeAdd

submodule.go:178–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178func (sub *Submodule) FinalizeAdd() error {
179 runtime.LockOSThread()
180 defer runtime.UnlockOSThread()
181
182 ret := C.git_submodule_add_finalize(sub.ptr)
183 runtime.KeepAlive(sub)
184 if ret < 0 {
185 return MakeGitError(ret)
186 }
187 return nil
188}
189
190func (sub *Submodule) AddToIndex(write_index bool) error {
191 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected