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

Method Write

index.go:434–445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432}
433
434func (v *Index) Write() error {
435 runtime.LockOSThread()
436 defer runtime.UnlockOSThread()
437
438 ret := C.git_index_write(v.ptr)
439 runtime.KeepAlive(v)
440 if ret < 0 {
441 return MakeGitError(ret)
442 }
443
444 return nil
445}
446
447func (v *Index) Free() {
448 runtime.SetFinalizer(v, nil)

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected