@@ -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 ;
@@ -855,21 +855,22 @@ public static unsafe int git_diff_num_deltas(DiffHandle diff)
855855
856856 #region git_error_
857857
858- public static void git_error_set_str ( GitErrorCategory error_class , Exception exception )
858+ public static int git_error_set_str ( GitErrorCategory error_class , Exception exception )
859859 {
860860 if ( exception is OutOfMemoryException )
861861 {
862862 NativeMethods . git_error_set_oom ( ) ;
863+ return 0 ;
863864 }
864865 else
865866 {
866- NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
867+ return NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
867868 }
868869 }
869870
870- public static void git_error_set_str ( GitErrorCategory error_class , String errorString )
871+ public static int git_error_set_str ( GitErrorCategory error_class , String errorString )
871872 {
872- NativeMethods . git_error_set_str ( error_class , errorString ) ;
873+ return NativeMethods . git_error_set_str ( error_class , errorString ) ;
873874 }
874875
875876 /// <summary>
@@ -2589,9 +2590,9 @@ public static unsafe FilePath git_repository_path(RepositoryHandle repo)
25892590 return NativeMethods . git_repository_path ( repo ) ;
25902591 }
25912592
2592- public static unsafe void git_repository_set_config ( RepositoryHandle repo , ConfigurationHandle config )
2593+ public static unsafe int git_repository_set_config ( RepositoryHandle repo , ConfigurationHandle config )
25932594 {
2594- NativeMethods . git_repository_set_config ( repo , config ) ;
2595+ return NativeMethods . git_repository_set_config ( repo , config ) ;
25952596 }
25962597
25972598 public static unsafe void git_repository_set_ident ( RepositoryHandle repo , string name , string email )
@@ -2600,9 +2601,9 @@ public static unsafe void git_repository_set_ident(RepositoryHandle repo, string
26002601 Ensure . ZeroResult ( res ) ;
26012602 }
26022603
2603- public static unsafe void git_repository_set_index ( RepositoryHandle repo , IndexHandle index )
2604+ public static unsafe int git_repository_set_index ( RepositoryHandle repo , IndexHandle index )
26042605 {
2605- NativeMethods . git_repository_set_index ( repo , index ) ;
2606+ return NativeMethods . git_repository_set_index ( repo , index ) ;
26062607 }
26072608
26082609 public static unsafe void git_repository_set_workdir ( RepositoryHandle repo , FilePath workdir )
@@ -2783,14 +2784,14 @@ public static unsafe void git_revwalk_reset(RevWalkerHandle walker)
27832784 NativeMethods . git_revwalk_reset ( walker ) ;
27842785 }
27852786
2786- public static unsafe void git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
2787+ public static unsafe int git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
27872788 {
2788- NativeMethods . git_revwalk_sorting ( walker , options ) ;
2789+ return NativeMethods . git_revwalk_sorting ( walker , options ) ;
27892790 }
27902791
2791- public static unsafe void git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
2792+ public static unsafe int git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
27922793 {
2793- NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
2794+ return NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
27942795 }
27952796
27962797#endregion
0 commit comments