@@ -70,7 +70,7 @@ int git_blob__parse(void *_blob, git_odb_object *odb_obj)
7070 return 0 ;
7171}
7272
73- int git_blob_create_frombuffer (
73+ int git_blob_create_from_buffer (
7474 git_oid * id , git_repository * repo , const void * buffer , size_t len )
7575{
7676 int error ;
@@ -263,13 +263,13 @@ int git_blob__create_from_paths(
263263 return error ;
264264}
265265
266- int git_blob_create_fromworkdir (
266+ int git_blob_create_from_workdir (
267267 git_oid * id , git_repository * repo , const char * path )
268268{
269269 return git_blob__create_from_paths (id , NULL , repo , NULL , path , 0 , true);
270270}
271271
272- int git_blob_create_fromdisk (
272+ int git_blob_create_from_disk (
273273 git_oid * id , git_repository * repo , const char * path )
274274{
275275 int error ;
@@ -325,7 +325,7 @@ static int blob_writestream_write(git_writestream *_stream, const char *buffer,
325325 return git_filebuf_write (& stream -> fbuf , buffer , len );
326326}
327327
328- int git_blob_create_fromstream (git_writestream * * out , git_repository * repo , const char * hintpath )
328+ int git_blob_create_from_stream (git_writestream * * out , git_repository * repo , const char * hintpath )
329329{
330330 int error ;
331331 git_buf path = GIT_BUF_INIT ;
@@ -364,7 +364,7 @@ int git_blob_create_fromstream(git_writestream **out, git_repository *repo, cons
364364 return error ;
365365}
366366
367- int git_blob_create_fromstream_commit (git_oid * out , git_writestream * _stream )
367+ int git_blob_create_from_stream_commit (git_oid * out , git_writestream * _stream )
368368{
369369 int error ;
370370 blob_writestream * stream = (blob_writestream * ) _stream ;
@@ -427,3 +427,36 @@ int git_blob_filtered_content(
427427
428428 return error ;
429429}
430+
431+ /* Deprecated functions */
432+
433+ int git_blob_create_frombuffer (
434+ git_oid * id , git_repository * repo , const void * buffer , size_t len )
435+ {
436+ return git_blob_create_from_buffer (id , repo , buffer , len );
437+ }
438+
439+ int git_blob_create_fromworkdir (git_oid * id , git_repository * repo , const char * relative_path )
440+ {
441+ return git_blob_create_from_workdir (id , repo , relative_path );
442+ }
443+
444+ int git_blob_create_fromdisk (git_oid * id , git_repository * repo , const char * path )
445+ {
446+ return git_blob_create_from_disk (id , repo , path );
447+ }
448+
449+ int git_blob_create_fromstream (
450+ git_writestream * * out ,
451+ git_repository * repo ,
452+ const char * hintpath )
453+ {
454+ return git_blob_create_from_stream (out , repo , hintpath );
455+ }
456+
457+ int git_blob_create_fromstream_commit (
458+ git_oid * out ,
459+ git_writestream * stream )
460+ {
461+ return git_blob_create_from_stream_commit (out , stream );
462+ }
0 commit comments