summaryrefslogtreecommitdiff
path: root/tests/object
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-08 19:25:36 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-16 00:55:14 +0100
commit6574cd00763c57cef39ad3d0a9df323904d37864 (patch)
tree8522b98c50810088dd388ccaecd8cfbed7e9f5b6 /tests/object
parent08f392080cfd7e08972820d8147dc06432e7c4bf (diff)
downloadlibgit2-6574cd00763c57cef39ad3d0a9df323904d37864.tar.gz
index: rename `frombuffer` to `from_buffer`
The majority of functions are named `from_something` (with an underscore) instead of `fromsomething`. Update the index functions for consistency with the rest of the library.
Diffstat (limited to 'tests/object')
-rw-r--r--tests/object/tree/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/object/tree/read.c b/tests/object/tree/read.c
index a20ec387c..4c4636bc0 100644
--- a/tests/object/tree/read.c
+++ b/tests/object/tree/read.c
@@ -98,7 +98,7 @@ void test_object_tree_read__largefile(void)
ie.path = BIGFILE;
cl_git_pass(git_repository_index(&index, g_repo));
- cl_git_pass(git_index_add_frombuffer(index, &ie, buf, BIGFILE_SIZE));
+ cl_git_pass(git_index_add_from_buffer(index, &ie, buf, BIGFILE_SIZE));
cl_repo_commit_from_index(&oid, g_repo, NULL, 0, BIGFILE);
cl_git_pass(git_commit_lookup(&commit, g_repo, &oid));