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

Method Sync

submodule.go:342–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340}
341
342func (sub *Submodule) Sync() error {
343 runtime.LockOSThread()
344 defer runtime.UnlockOSThread()
345
346 ret := C.git_submodule_sync(sub.ptr)
347 runtime.KeepAlive(sub)
348 if ret < 0 {
349 return MakeGitError(ret)
350 }
351 return nil
352}
353
354func (sub *Submodule) Open() (*Repository, error) {
355 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected