()
| 136 | } |
| 137 | |
| 138 | func (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 | } |
nothing calls this directly
no test coverage detected