@@ -131,11 +131,6 @@ private static extern unsafe int git_blob_create_fromworkdir(
131131 git_repository * repo ,
132132 [ CustomMarshaler ( typeof ( StrictFilePathMarshaler ) , typeof ( FilePath ) ) ] byte * relative_path ) ;
133133
134- internal delegate int source_callback (
135- IntPtr content ,
136- int max_length ,
137- IntPtr data ) ;
138-
139134 [ DllImport ( libgit2 ) ]
140135 private static extern unsafe int git_blob_create_fromstream (
141136 out IntPtr stream ,
@@ -147,14 +142,6 @@ internal static extern unsafe int git_blob_create_fromstream_commit(
147142 ref GitOid oid ,
148143 IntPtr stream ) ;
149144
150- [ DllImport ( libgit2 ) ]
151- private static extern unsafe int git_blob_create_fromchunks (
152- ref GitOid oid ,
153- git_repository * repositoryPtr ,
154- [ CustomMarshaler ( typeof ( StrictFilePathMarshaler ) , typeof ( FilePath ) ) ] byte * hintpath ,
155- source_callback fileCallback ,
156- IntPtr data ) ;
157-
158145 [ DllImport ( libgit2 ) ]
159146 private static extern unsafe int git_blob_filtered_content (
160147 GitBuf buf ,
@@ -1029,7 +1016,7 @@ internal static extern unsafe int git_packbuilder_insert_tree(
10291016 internal static extern unsafe int git_packbuilder_new ( out git_packbuilder * packbuilder , git_repository * repo ) ;
10301017
10311018 [ DllImport ( libgit2 ) ]
1032- internal static extern unsafe UInt32 git_packbuilder_object_count ( git_packbuilder * packbuilder ) ;
1019+ internal static extern unsafe UIntPtr git_packbuilder_object_count ( git_packbuilder * packbuilder ) ;
10331020
10341021 [ DllImport ( libgit2 ) ]
10351022 internal static extern unsafe UInt32 git_packbuilder_set_threads ( git_packbuilder * packbuilder , UInt32 numThreads ) ;
@@ -1043,7 +1030,7 @@ private static extern unsafe int git_packbuilder_write(
10431030 IntPtr payload ) ;
10441031
10451032 [ DllImport ( libgit2 ) ]
1046- internal static extern unsafe UInt32 git_packbuilder_written ( git_packbuilder * packbuilder ) ;
1033+ internal static extern unsafe UIntPtr git_packbuilder_written ( git_packbuilder * packbuilder ) ;
10471034
10481035 [ DllImport ( libgit2 ) ]
10491036 private static extern unsafe int git_reference_create (
@@ -1222,6 +1209,7 @@ internal static extern unsafe int git_remote_connect(
12221209 git_remote * remote ,
12231210 GitDirection direction ,
12241211 ref GitRemoteCallbacks callbacks ,
1212+ ref GitProxyOptions proxy_options ,
12251213 ref GitStrArray custom_headers ) ;
12261214
12271215 [ DllImport ( libgit2 ) ]
@@ -1512,6 +1500,15 @@ internal static extern unsafe int git_revert(
15121500 git_object * commit ,
15131501 GitRevertOpts opts ) ;
15141502
1503+ [ DllImport ( libgit2 ) ]
1504+ internal static extern unsafe int git_revert_commit (
1505+ out git_index * index ,
1506+ git_repository * repo ,
1507+ git_object * revert_commit ,
1508+ git_object * our_commit ,
1509+ uint mainline ,
1510+ ref GitMergeOpts opts ) ;
1511+
15151512 [ DllImport ( libgit2 ) ]
15161513 private static extern unsafe int git_revparse_ext (
15171514 out git_object * obj ,
@@ -1644,7 +1641,7 @@ private static extern unsafe int git_submodule_resolve_url(
16441641 internal static extern unsafe int git_submodule_update (
16451642 git_submodule * sm ,
16461643 [ MarshalAs ( UnmanagedType . Bool ) ] bool init ,
1647- ref GitSubmoduleOptions submoduleUpdateOptions ) ;
1644+ ref GitSubmoduleUpdateOptions submoduleUpdateOptions ) ;
16481645
16491646 internal delegate int submodule_callback (
16501647 IntPtr sm ,
@@ -1871,6 +1868,14 @@ private static extern unsafe int git_treebuilder_insert(
18711868 [ DllImport ( libgit2 ) ]
18721869 internal static extern unsafe int git_cherrypick ( git_repository * repo , git_object * commit , GitCherryPickOptions options ) ;
18731870
1871+ [ DllImport ( libgit2 ) ]
1872+ internal static extern unsafe int git_cherrypick_commit ( out git_index * index ,
1873+ git_repository * repo ,
1874+ git_object * cherrypick_commit ,
1875+ git_object * our_commit ,
1876+ uint mainline ,
1877+ ref GitMergeOpts options ) ;
1878+
18741879 [ DllImport ( libgit2 ) ]
18751880 internal static extern int git_transaction_commit ( IntPtr txn ) ;
18761881
0 commit comments