@@ -36,34 +36,34 @@ public static unsafe BlameHandle git_blame_file(
36
36
37
37
#region git_blob_
38
38
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 )
40
40
{
41
41
IntPtr writestream_ptr ;
42
42
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 ) ) ;
44
44
return writestream_ptr ;
45
45
}
46
46
47
47
public static unsafe ObjectId git_blob_create_fromstream_commit ( IntPtr writestream_ptr )
48
48
{
49
49
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 ) ) ;
51
51
return oid ;
52
52
}
53
53
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 )
55
55
{
56
56
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 ) ;
58
58
Ensure . ZeroResult ( res ) ;
59
59
60
60
return oid ;
61
61
}
62
62
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 )
64
64
{
65
65
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 ) ;
67
67
Ensure . ZeroResult ( res ) ;
68
68
69
69
return oid ;
@@ -847,21 +847,22 @@ public static unsafe int git_diff_num_deltas(DiffHandle diff)
847
847
848
848
#region git_error_
849
849
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 )
851
851
{
852
852
if ( exception is OutOfMemoryException )
853
853
{
854
854
NativeMethods . git_error_set_oom ( ) ;
855
+ return 0 ;
855
856
}
856
857
else
857
858
{
858
- NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
859
+ return NativeMethods . git_error_set_str ( error_class , ErrorMessageFromException ( exception ) ) ;
859
860
}
860
861
}
861
862
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 )
863
864
{
864
- NativeMethods . git_error_set_str ( error_class , errorString ) ;
865
+ return NativeMethods . git_error_set_str ( error_class , errorString ) ;
865
866
}
866
867
867
868
/// <summary>
@@ -2581,9 +2582,9 @@ public static unsafe FilePath git_repository_path(RepositoryHandle repo)
2581
2582
return NativeMethods . git_repository_path ( repo ) ;
2582
2583
}
2583
2584
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 )
2585
2586
{
2586
- NativeMethods . git_repository_set_config ( repo , config ) ;
2587
+ return NativeMethods . git_repository_set_config ( repo , config ) ;
2587
2588
}
2588
2589
2589
2590
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
2592
2593
Ensure . ZeroResult ( res ) ;
2593
2594
}
2594
2595
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 )
2596
2597
{
2597
- NativeMethods . git_repository_set_index ( repo , index ) ;
2598
+ return NativeMethods . git_repository_set_index ( repo , index ) ;
2598
2599
}
2599
2600
2600
2601
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)
2775
2776
NativeMethods . git_revwalk_reset ( walker ) ;
2776
2777
}
2777
2778
2778
- public static unsafe void git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
2779
+ public static unsafe int git_revwalk_sorting ( RevWalkerHandle walker , CommitSortStrategies options )
2779
2780
{
2780
- NativeMethods . git_revwalk_sorting ( walker , options ) ;
2781
+ return NativeMethods . git_revwalk_sorting ( walker , options ) ;
2781
2782
}
2782
2783
2783
- public static unsafe void git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
2784
+ public static unsafe int git_revwalk_simplify_first_parent ( RevWalkerHandle walker )
2784
2785
{
2785
- NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
2786
+ return NativeMethods . git_revwalk_simplify_first_parent ( walker ) ;
2786
2787
}
2787
2788
2788
2789
#endregion
0 commit comments