@@ -36,34 +36,34 @@ public static unsafe BlameHandle git_blame_file(
3636
3737 #region git_blob_
3838
39- public static unsafe IntPtr git_blob_create_fromstream ( RepositoryHandle repo , string hintpath )
39+ public static unsafe IntPtr git_blob_create_from_stream ( RepositoryHandle repo , string hintpath )
4040 {
4141 IntPtr writestream_ptr ;
4242
43- Ensure . ZeroResult ( NativeMethods . git_blob_create_fromstream ( out writestream_ptr , repo , hintpath ) ) ;
43+ Ensure . ZeroResult ( NativeMethods . git_blob_create_from_stream ( out writestream_ptr , repo , hintpath ) ) ;
4444 return writestream_ptr ;
4545 }
4646
4747 public static unsafe ObjectId git_blob_create_fromstream_commit ( IntPtr writestream_ptr )
4848 {
4949 var oid = new GitOid ( ) ;
50- Ensure . ZeroResult ( NativeMethods . git_blob_create_fromstream_commit ( ref oid , writestream_ptr ) ) ;
50+ Ensure . ZeroResult ( NativeMethods . git_blob_create_from_stream_commit ( ref oid , writestream_ptr ) ) ;
5151 return oid ;
5252 }
5353
54- public static unsafe ObjectId git_blob_create_fromdisk ( RepositoryHandle repo , FilePath path )
54+ public static unsafe ObjectId git_blob_create_from_disk ( RepositoryHandle repo , FilePath path )
5555 {
5656 var oid = new GitOid ( ) ;
57- int res = NativeMethods . git_blob_create_fromdisk ( ref oid , repo , path ) ;
57+ int res = NativeMethods . git_blob_create_from_disk ( ref oid , repo , path ) ;
5858 Ensure . ZeroResult ( res ) ;
5959
6060 return oid ;
6161 }
6262
63- public static unsafe ObjectId git_blob_create_fromfile ( RepositoryHandle repo , FilePath path )
63+ public static unsafe ObjectId git_blob_create_from_workdir ( RepositoryHandle repo , FilePath path )
6464 {
6565 var oid = new GitOid ( ) ;
66- int res = NativeMethods . git_blob_create_fromworkdir ( ref oid , repo , path ) ;
66+ int res = NativeMethods . git_blob_create_from_workdir ( ref oid , repo , path ) ;
6767 Ensure . ZeroResult ( res ) ;
6868
6969 return oid ;
@@ -847,21 +847,22 @@ public static unsafe int git_diff_num_deltas(DiffHandle diff)
847847
848848 #region git_error_
849849
850- public static void git_error_set_str ( GitErrorCategory error_class , Exception exception )
850+ public static int git_error_set_str ( GitErrorCategory error_class , Exception exception )
851851 {
852852 if ( exception is OutOfMemoryException )
853853 {
854854 NativeMethods . git_error_set_oom ( ) ;
855+ return 0 ;
855856 }
856857 else
857858 {
858- NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
859+ return NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
859860 }
860861 }
861862
862- public static void git_error_set_str ( GitErrorCategory error_class , String errorString )
863+ public static int git_error_set_str ( GitErrorCategory error_class , String errorString )
863864 {
864- NativeMethods . git_error_set_str ( error_class , errorString ) ;
865+ return NativeMethods . git_error_set_str ( error_class , errorString ) ;
865866 }
866867
867868 /// <summary>
@@ -2581,9 +2582,9 @@ public static unsafe FilePath git_repository_path(RepositoryHandle repo)
25812582 return NativeMethods . git_repository_path ( repo ) ;
25822583 }
25832584
2584- public static unsafe void git_repository_set_config ( RepositoryHandle repo , ConfigurationHandle config )
2585+ public static unsafe int git_repository_set_config ( RepositoryHandle repo , ConfigurationHandle config )
25852586 {
2586- NativeMethods . git_repository_set_config ( repo , config ) ;
2587+ return NativeMethods . git_repository_set_config ( repo , config ) ;
25872588 }
25882589
25892590 public static unsafe void git_repository_set_ident ( RepositoryHandle repo , string name , string email )
@@ -2592,9 +2593,9 @@ public static unsafe void git_repository_set_ident(RepositoryHandle repo, string
25922593 Ensure . ZeroResult ( res ) ;
25932594 }
25942595
2595- public static unsafe void git_repository_set_index ( RepositoryHandle repo , IndexHandle index )
2596+ public static unsafe int git_repository_set_index ( RepositoryHandle repo , IndexHandle index )
25962597 {
2597- NativeMethods . git_repository_set_index ( repo , index ) ;
2598+ return NativeMethods . git_repository_set_index ( repo , index ) ;
25982599 }
25992600
26002601 public static unsafe void git_repository_set_workdir ( RepositoryHandle repo , FilePath workdir )
@@ -2775,14 +2776,14 @@ public static unsafe void git_revwalk_reset(RevWalkerHandle walker)
27752776 NativeMethods . git_revwalk_reset ( walker ) ;
27762777 }
27772778
2778- public static unsafe void git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
2779+ public static unsafe int git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
27792780 {
2780- NativeMethods . git_revwalk_sorting ( walker , options ) ;
2781+ return NativeMethods . git_revwalk_sorting ( walker , options ) ;
27812782 }
27822783
2783- public static unsafe void git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
2784+ public static unsafe int git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
27842785 {
2785- NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
2786+ return NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
27862787 }
27872788
27882789#endregion
0 commit comments