Add binding for git_index_add_frombuffer #400

Merged
ramanenka merged 3 commits from git_index_add_frombuffer into master 2020-02-23 08:47:19 -06:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 00374b39aa - Show all commits

View File

@ -212,7 +212,7 @@ func (v *Index) AddFromBuffer(entry *IndexEntry, buffer []byte) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
if err := C.git_index_add_frombuffer(v.ptr, &centry, cbuffer, C.size_t(len(buffer))); err < 0 {
if err := C.git_index_add_from_buffer(v.ptr, &centry, cbuffer, C.size_t(len(buffer))); err < 0 {
return MakeGitError(err)
}