@@ -174,9 +174,7 @@ internal static extern int git_branch_create(
174174 RepositorySafeHandle repo ,
175175 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string branch_name ,
176176 GitObjectSafeHandle target , // TODO: GitCommitSafeHandle?
177- [ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
178- SignatureSafeHandle signature ,
179- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
177+ [ MarshalAs ( UnmanagedType . Bool ) ] bool force ) ;
180178
181179 [ DllImport ( libgit2 ) ]
182180 internal static extern int git_branch_delete (
@@ -202,9 +200,7 @@ internal static extern int git_branch_move(
202200 out ReferenceSafeHandle ref_out ,
203201 ReferenceSafeHandle reference ,
204202 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string new_branch_name ,
205- [ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
206- SignatureSafeHandle signature ,
207- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
203+ [ MarshalAs ( UnmanagedType . Bool ) ] bool force ) ;
208204
209205 [ DllImport ( libgit2 ) ]
210206 internal static extern int git_branch_next (
@@ -313,6 +309,9 @@ internal static extern int git_commit_create_from_ids(
313309 [ DllImport ( libgit2 ) ]
314310 internal static extern void git_config_free ( IntPtr cfg ) ;
315311
312+ [ DllImport ( libgit2 ) ]
313+ internal static extern void git_config_entry_free ( IntPtr entry ) ;
314+
316315 [ DllImport ( libgit2 ) ]
317316 internal static extern int git_config_get_entry (
318317 out GitConfigEntryHandle entry ,
@@ -846,7 +845,6 @@ internal static extern int git_reference_create(
846845 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
847846 ref GitOid oid ,
848847 [ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
849- SignatureSafeHandle signature ,
850848 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
851849
852850 [ DllImport ( libgit2 ) ]
@@ -856,7 +854,6 @@ internal static extern int git_reference_symbolic_create(
856854 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
857855 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string target ,
858856 [ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
859- SignatureSafeHandle signature ,
860857 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
861858
862859 internal delegate int ref_glob_callback (
@@ -904,23 +901,20 @@ internal static extern int git_reference_rename(
904901 ReferenceSafeHandle reference ,
905902 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string newName ,
906903 [ MarshalAs ( UnmanagedType . Bool ) ] bool force ,
907- SignatureSafeHandle signature ,
908904 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
909905
910906 [ DllImport ( libgit2 ) ]
911907 internal static extern int git_reference_set_target (
912908 out ReferenceSafeHandle ref_out ,
913909 ReferenceSafeHandle reference ,
914910 ref GitOid id ,
915- SignatureSafeHandle signature ,
916911 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
917912
918913 [ DllImport ( libgit2 ) ]
919914 internal static extern int git_reference_symbolic_set_target (
920915 out ReferenceSafeHandle ref_out ,
921916 ReferenceSafeHandle reference ,
922917 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string target ,
923- SignatureSafeHandle signature ,
924918 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
925919
926920 [ DllImport ( libgit2 ) ]
@@ -1038,7 +1032,6 @@ internal static extern int git_remote_delete(
10381032 internal static extern int git_remote_fetch (
10391033 RemoteSafeHandle remote ,
10401034 ref GitStrArray refspecs ,
1041- SignatureSafeHandle signature ,
10421035 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
10431036
10441037 [ DllImport ( libgit2 ) ]
@@ -1057,9 +1050,7 @@ internal static extern int git_remote_fetch(
10571050 internal static extern int git_remote_push (
10581051 RemoteSafeHandle remote ,
10591052 ref GitStrArray refSpecs ,
1060- GitPushOptions opts ,
1061- SignatureSafeHandle signature ,
1062- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string reflogMessage ) ;
1053+ GitPushOptions opts ) ;
10631054
10641055 [ DllImport ( libgit2 ) ]
10651056 internal static extern UIntPtr git_remote_refspec_count ( RemoteSafeHandle remote ) ;
@@ -1160,6 +1151,12 @@ internal static extern int git_repository_fetchhead_foreach(
11601151 [ DllImport ( libgit2 ) ]
11611152 internal static extern int git_repository_head_unborn ( RepositorySafeHandle repo ) ;
11621153
1154+ [ DllImport ( libgit2 ) ]
1155+ internal static extern int git_repository_ident (
1156+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ] out string name ,
1157+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ] out string email ,
1158+ RepositorySafeHandle repo ) ;
1159+
11631160 [ DllImport ( libgit2 ) ]
11641161 internal static extern int git_repository_index ( out IndexSafeHandle index , RepositorySafeHandle repo ) ;
11651162
@@ -1217,6 +1214,13 @@ internal static extern void git_repository_set_config(
12171214 RepositorySafeHandle repository ,
12181215 ConfigurationSafeHandle config ) ;
12191216
1217+ [ DllImport ( libgit2 ) ]
1218+ internal static extern int git_repository_set_ident (
1219+ RepositorySafeHandle repo ,
1220+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1221+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ) ;
1222+
1223+
12201224 [ DllImport ( libgit2 ) ]
12211225 internal static extern void git_repository_set_index (
12221226 RepositorySafeHandle repository ,
@@ -1231,16 +1235,12 @@ internal static extern int git_repository_set_workdir(
12311235 [ DllImport ( libgit2 ) ]
12321236 internal static extern int git_repository_set_head_detached (
12331237 RepositorySafeHandle repo ,
1234- ref GitOid commitish ,
1235- SignatureSafeHandle signature ,
1236- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
1238+ ref GitOid commitish ) ;
12371239
12381240 [ DllImport ( libgit2 ) ]
12391241 internal static extern int git_repository_set_head (
12401242 RepositorySafeHandle repo ,
1241- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string refname ,
1242- SignatureSafeHandle signature ,
1243- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
1243+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string refname ) ;
12441244
12451245 [ DllImport ( libgit2 ) ]
12461246 internal static extern int git_repository_state (
@@ -1255,9 +1255,7 @@ internal static extern int git_reset(
12551255 RepositorySafeHandle repo ,
12561256 GitObjectSafeHandle target ,
12571257 ResetMode reset_type ,
1258- ref GitCheckoutOpts opts ,
1259- SignatureSafeHandle signature ,
1260- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
1258+ ref GitCheckoutOpts opts ) ;
12611259
12621260 [ DllImport ( libgit2 ) ]
12631261 internal static extern int git_revert (
0 commit comments