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

Method Commit

odb.go:497–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

495}
496
497func (writepack *OdbWritepack) Commit() error {
498 runtime.LockOSThread()
499 defer runtime.UnlockOSThread()
500
501 ret := C._go_git_odb_writepack_commit(writepack.ptr, &writepack.stats)
502 runtime.KeepAlive(writepack)
503 if ret < 0 {
504 return MakeGitError(ret)
505 }
506
507 return nil
508}
509
510func (writepack *OdbWritepack) Free() {
511 untrackCallbacksPayload(&writepack.ccallbacks)

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected