summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-08 17:46:04 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-16 00:16:49 +0100
commit08f392080cfd7e08972820d8147dc06432e7c4bf (patch)
tree14fe06510232924fc5e164d979a32980216104a0 /src/index.c
parent5d92e54745eaad2c89aa6457d504411ceee3a4f4 (diff)
downloadlibgit2-08f392080cfd7e08972820d8147dc06432e7c4bf.tar.gz
blob: add underscore to `from` functions
The majority of functions are named `from_something` (with an underscore) instead of `fromsomething`. Update the blob functions for consistency with the rest of the library.
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index ee8dfd541..ec4343377 100644
--- a/src/index.c
+++ b/src/index.c
@@ -1477,7 +1477,7 @@ int git_index_add_frombuffer(
if (index_entry_dup(&entry, index, source_entry) < 0)
return -1;
- error = git_blob_create_frombuffer(&id, INDEX_OWNER(index), buffer, len);
+ error = git_blob_create_from_buffer(&id, INDEX_OWNER(index), buffer, len);
if (error < 0) {
index_entry_free(entry);
return error;