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

Method Commit

blob.go:138–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (stream *BlobWriteStream) Commit() (*Oid, error) {
139 oid := C.git_oid{}
140
141 runtime.LockOSThread()
142 defer runtime.UnlockOSThread()
143
144 ecode := C.git_blob_create_from_stream_commit(&oid, stream.ptr)
145 runtime.KeepAlive(stream)
146 if ecode < 0 {
147 return nil, MakeGitError(ecode)
148 }
149
150 return newOidFromC(&oid), nil
151}

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
newOidFromCFunction · 0.85

Tested by

no test coverage detected