@@ -322,8 +322,8 @@ internal static extern unsafe int git_rebase_next(
322322 internal static extern unsafe int git_rebase_commit (
323323 ref GitOid id ,
324324 RebaseHandle rebase ,
325- git_signature * author ,
326- git_signature * committer ,
325+ SignatureHandle author ,
326+ SignatureHandle committer ,
327327 IntPtr message_encoding ,
328328 IntPtr message ) ;
329329
@@ -334,7 +334,7 @@ internal static extern unsafe int git_rebase_abort(
334334 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
335335 internal static extern unsafe int git_rebase_finish (
336336 RebaseHandle repo ,
337- git_signature * signature ) ;
337+ SignatureHandle signature ) ;
338338
339339 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
340340 internal static extern unsafe void git_rebase_free ( RebaseHandle rebase ) ;
@@ -380,18 +380,18 @@ internal static extern unsafe int git_clone(
380380 ref GitCloneOptions opts ) ;
381381
382382 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
383- internal static extern unsafe git_signature * git_commit_author ( ObjectHandle commit ) ;
383+ internal static extern unsafe SignatureHandle git_commit_author ( ObjectHandle commit ) ;
384384
385385 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
386- internal static extern unsafe git_signature * git_commit_committer ( ObjectHandle commit ) ;
386+ internal static extern unsafe SignatureHandle git_commit_committer ( ObjectHandle commit ) ;
387387
388388 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
389389 internal static extern unsafe int git_commit_create_from_ids (
390390 out GitOid id ,
391391 RepositoryHandle repo ,
392392 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string updateRef ,
393- git_signature * author ,
394- git_signature * committer ,
393+ SignatureHandle author ,
394+ SignatureHandle committer ,
395395 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string encoding ,
396396 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
397397 ref GitOid tree ,
@@ -402,8 +402,8 @@ internal static extern unsafe int git_commit_create_from_ids(
402402 internal static extern unsafe int git_commit_create_buffer (
403403 GitBuf res ,
404404 RepositoryHandle repo ,
405- git_signature * author ,
406- git_signature * committer ,
405+ SignatureHandle author ,
406+ SignatureHandle committer ,
407407 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string encoding ,
408408 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
409409 ObjectHandle tree ,
@@ -1020,8 +1020,8 @@ internal static extern unsafe int git_note_create(
10201020 out GitOid noteOid ,
10211021 RepositoryHandle repo ,
10221022 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string notes_ref ,
1023- git_signature * author ,
1024- git_signature * committer ,
1023+ SignatureHandle author ,
1024+ SignatureHandle committer ,
10251025 ref GitOid oid ,
10261026 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string note ,
10271027 int force ) ;
@@ -1047,8 +1047,8 @@ internal static extern unsafe int git_note_read(
10471047 internal static extern unsafe int git_note_remove (
10481048 RepositoryHandle repo ,
10491049 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string notes_ref ,
1050- git_signature * author ,
1051- git_signature * committer ,
1050+ SignatureHandle author ,
1051+ SignatureHandle committer ,
10521052 ref GitOid oid ) ;
10531053
10541054 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
@@ -1306,25 +1306,20 @@ internal static extern unsafe UIntPtr git_reflog_entrycount
13061306 ( ReflogHandle reflog ) ;
13071307
13081308 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1309- internal static extern unsafe git_reflog_entry * git_reflog_entry_byindex (
1310- ReflogHandle reflog ,
1311- UIntPtr idx ) ;
1309+ internal static extern unsafe nint git_reflog_entry_byindex ( ReflogHandle reflog , UIntPtr idx ) ;
13121310
13131311 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1314- internal static extern unsafe git_oid * git_reflog_entry_id_old (
1315- git_reflog_entry * entry ) ;
1312+ internal static extern unsafe git_oid * git_reflog_entry_id_old ( nint entry ) ;
13161313
13171314 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1318- internal static extern unsafe git_oid * git_reflog_entry_id_new (
1319- git_reflog_entry * entry ) ;
1315+ internal static extern unsafe git_oid * git_reflog_entry_id_new ( nint entry ) ;
13201316
13211317 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1322- internal static extern unsafe git_signature * git_reflog_entry_committer (
1323- git_reflog_entry * entry ) ;
1318+ internal static extern unsafe SignatureHandle git_reflog_entry_committer ( nint entry ) ;
13241319
13251320 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
13261321 [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1327- internal static extern unsafe string git_reflog_entry_message ( git_reflog_entry * entry ) ;
1322+ internal static extern unsafe string git_reflog_entry_message ( nint entry ) ;
13281323
13291324 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
13301325 internal static extern int git_refspec_transform (
@@ -1422,7 +1417,7 @@ internal static extern unsafe int git_remote_fetch(
14221417 internal static extern unsafe int git_remote_get_fetch_refspecs ( out GitStrArray array , RemoteHandle remote ) ;
14231418
14241419 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1425- internal static extern unsafe git_refspec * git_remote_get_refspec ( RemoteHandle remote , UIntPtr n ) ;
1420+ internal static extern unsafe nint git_remote_get_refspec ( RemoteHandle remote , UIntPtr n ) ;
14261421
14271422 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
14281423 internal static extern unsafe int git_remote_get_push_refspecs ( out GitStrArray array , RemoteHandle remote ) ;
@@ -1717,30 +1712,30 @@ internal static extern unsafe int git_revparse_ext(
17171712 internal static extern unsafe int git_revwalk_simplify_first_parent ( RevWalkerHandle walk ) ;
17181713
17191714 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1720- internal static extern unsafe void git_signature_free ( git_signature * signature ) ;
1715+ internal static extern unsafe void git_signature_free ( SignatureHandle signature ) ;
17211716
17221717 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
17231718 internal static extern unsafe int git_signature_new (
1724- out git_signature * signature ,
1719+ out SignatureHandle signature ,
17251720 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
17261721 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ,
17271722 long time ,
17281723 int offset ) ;
17291724
17301725 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
17311726 internal static extern unsafe int git_signature_now (
1732- out git_signature * signature ,
1727+ out SignatureHandle signature ,
17331728 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
17341729 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ) ;
17351730
17361731 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1737- internal static extern unsafe int git_signature_dup ( out git_signature * dest , git_signature * sig ) ;
1732+ internal static extern unsafe int git_signature_dup ( out SignatureHandle dest , SignatureHandle sig ) ;
17381733
17391734 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
17401735 internal static extern unsafe int git_stash_save (
17411736 out GitOid id ,
17421737 RepositoryHandle repo ,
1743- git_signature * stasher ,
1738+ SignatureHandle stasher ,
17441739 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
17451740 StashModifiers flags ) ;
17461741
@@ -1897,7 +1892,7 @@ internal static extern unsafe int git_tag_annotation_create(
18971892 RepositoryHandle repo ,
18981893 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
18991894 ObjectHandle target ,
1900- git_signature * signature ,
1895+ SignatureHandle signature ,
19011896 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ) ;
19021897
19031898 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
@@ -1906,7 +1901,7 @@ internal static extern unsafe int git_tag_create(
19061901 RepositoryHandle repo ,
19071902 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
19081903 ObjectHandle target ,
1909- git_signature * signature ,
1904+ SignatureHandle signature ,
19101905 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
19111906 [ MarshalAs ( UnmanagedType . Bool ) ]
19121907 bool force ) ;
@@ -1937,7 +1932,7 @@ internal static extern unsafe int git_tag_delete(
19371932 internal static extern unsafe string git_tag_name ( ObjectHandle tag ) ;
19381933
19391934 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1940- internal static extern unsafe git_signature * git_tag_tagger ( ObjectHandle tag ) ;
1935+ internal static extern unsafe SignatureHandle git_tag_tagger ( ObjectHandle tag ) ;
19411936
19421937 [ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
19431938 internal static extern unsafe git_oid * git_tag_target_id ( ObjectHandle tag ) ;
0 commit comments