summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-02-23 14:38:10 +0000
committerlhchavez <[email protected]>2020-02-23 14:38:10 +0000
commit00374b39aad728f34eeadbb575ac607acbfa205a (patch)
treeddae8b1265953acf97fd71b8cb0ee2ea6ae8cee7 /index.go
parentc20008416a64e2ae884a14332b258160a261a5df (diff)
Update the method name
Diffstat (limited to 'index.go')
-rw-r--r--index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.go b/index.go
index 32acd14..50538bd 100644
--- a/index.go
+++ b/index.go
@@ -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)
}