@@ -164,7 +164,7 @@ static void add_entry_and_check_mode_(
164164 git_index_entry new_entry ;
165165
166166 /* If old_filename exists, we copy that to the new file, and test
167- * git_index_add(), otherwise create a new entry testing git_index_add_frombuffer
167+ * git_index_add(), otherwise create a new entry testing git_index_add_from_buffer
168168 */
169169 if (from_file )
170170 {
@@ -189,7 +189,7 @@ static void add_entry_and_check_mode_(
189189 else
190190 {
191191 const char * content = "hey there\n" ;
192- clar__assert (!git_index_add_frombuffer (index , & new_entry , content , strlen (content )),
192+ clar__assert (!git_index_add_from_buffer (index , & new_entry , content , strlen (content )),
193193 file , line , "Cannot add index entry from buffer" , NULL , 1 );
194194 }
195195
@@ -207,7 +207,7 @@ void test_index_filemodes__explicit(void)
207207 git_index * index ;
208208
209209 /* These tests should run and work everywhere, as the filemode is
210- * given explicitly to git_index_add or git_index_add_frombuffer
210+ * given explicitly to git_index_add or git_index_add_from_buffer
211211 */
212212 cl_repo_set_bool (g_repo , "core.filemode" , false);
213213
@@ -271,7 +271,7 @@ void test_index_filemodes__frombuffer_requires_files(void)
271271 new_entry .path = "dummy-file.txt" ;
272272 new_entry .mode = GIT_FILEMODE_BLOB ;
273273
274- cl_git_pass (git_index_add_frombuffer (index ,
274+ cl_git_pass (git_index_add_from_buffer (index ,
275275 & new_entry , content , strlen (content )));
276276
277277 cl_assert ((ret_entry = git_index_get_bypath (index , "dummy-file.txt" , 0 )));
@@ -282,7 +282,7 @@ void test_index_filemodes__frombuffer_requires_files(void)
282282 new_entry .path = "dummy-file.txt" ;
283283 new_entry .mode = GIT_FILEMODE_BLOB_EXECUTABLE ;
284284
285- cl_git_pass (git_index_add_frombuffer (index ,
285+ cl_git_pass (git_index_add_from_buffer (index ,
286286 & new_entry , content , strlen (content )));
287287
288288 cl_assert ((ret_entry = git_index_get_bypath (index , "dummy-file.txt" , 0 )));
@@ -293,7 +293,7 @@ void test_index_filemodes__frombuffer_requires_files(void)
293293 new_entry .path = "dummy-link.txt" ;
294294 new_entry .mode = GIT_FILEMODE_LINK ;
295295
296- cl_git_pass (git_index_add_frombuffer (index ,
296+ cl_git_pass (git_index_add_from_buffer (index ,
297297 & new_entry , content , strlen (content )));
298298
299299 cl_assert ((ret_entry = git_index_get_bypath (index , "dummy-link.txt" , 0 )));
@@ -304,15 +304,15 @@ void test_index_filemodes__frombuffer_requires_files(void)
304304 new_entry .path = "invalid_mode.txt" ;
305305 new_entry .mode = GIT_FILEMODE_TREE ;
306306
307- cl_git_fail (git_index_add_frombuffer (index ,
307+ cl_git_fail (git_index_add_from_buffer (index ,
308308 & new_entry , content , strlen (content )));
309309 cl_assert_equal_p (NULL , git_index_get_bypath (index , "invalid_mode.txt" , 0 ));
310310
311311 /* submodules are rejected */
312312 new_entry .path = "invalid_mode.txt" ;
313313 new_entry .mode = GIT_FILEMODE_COMMIT ;
314314
315- cl_git_fail (git_index_add_frombuffer (index ,
315+ cl_git_fail (git_index_add_from_buffer (index ,
316316 & new_entry , content , strlen (content )));
317317 cl_assert_equal_p (NULL , git_index_get_bypath (index , "invalid_mode.txt" , 0 ));
318318
0 commit comments