@@ -322,8 +322,8 @@ internal static extern unsafe int git_rebase_next(
322
322
internal static extern unsafe int git_rebase_commit (
323
323
ref GitOid id ,
324
324
RebaseHandle rebase ,
325
- git_signature * author ,
326
- git_signature * committer ,
325
+ SignatureHandle author ,
326
+ SignatureHandle committer ,
327
327
IntPtr message_encoding ,
328
328
IntPtr message ) ;
329
329
@@ -334,7 +334,7 @@ internal static extern unsafe int git_rebase_abort(
334
334
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
335
335
internal static extern unsafe int git_rebase_finish (
336
336
RebaseHandle repo ,
337
- git_signature * signature ) ;
337
+ SignatureHandle signature ) ;
338
338
339
339
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
340
340
internal static extern unsafe void git_rebase_free ( RebaseHandle rebase ) ;
@@ -380,18 +380,18 @@ internal static extern unsafe int git_clone(
380
380
ref GitCloneOptions opts ) ;
381
381
382
382
[ 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 ) ;
384
384
385
385
[ 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 ) ;
387
387
388
388
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
389
389
internal static extern unsafe int git_commit_create_from_ids (
390
390
out GitOid id ,
391
391
RepositoryHandle repo ,
392
392
[ 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 ,
395
395
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string encoding ,
396
396
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
397
397
ref GitOid tree ,
@@ -402,8 +402,8 @@ internal static extern unsafe int git_commit_create_from_ids(
402
402
internal static extern unsafe int git_commit_create_buffer (
403
403
GitBuf res ,
404
404
RepositoryHandle repo ,
405
- git_signature * author ,
406
- git_signature * committer ,
405
+ SignatureHandle author ,
406
+ SignatureHandle committer ,
407
407
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string encoding ,
408
408
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
409
409
ObjectHandle tree ,
@@ -1020,8 +1020,8 @@ internal static extern unsafe int git_note_create(
1020
1020
out GitOid noteOid ,
1021
1021
RepositoryHandle repo ,
1022
1022
[ 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 ,
1025
1025
ref GitOid oid ,
1026
1026
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string note ,
1027
1027
int force ) ;
@@ -1047,8 +1047,8 @@ internal static extern unsafe int git_note_read(
1047
1047
internal static extern unsafe int git_note_remove (
1048
1048
RepositoryHandle repo ,
1049
1049
[ 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 ,
1052
1052
ref GitOid oid ) ;
1053
1053
1054
1054
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
@@ -1306,25 +1306,20 @@ internal static extern unsafe UIntPtr git_reflog_entrycount
1306
1306
( ReflogHandle reflog ) ;
1307
1307
1308
1308
[ 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 ) ;
1312
1310
1313
1311
[ 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 ) ;
1316
1313
1317
1314
[ 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 ) ;
1320
1316
1321
1317
[ 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 ) ;
1324
1319
1325
1320
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1326
1321
[ 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 ) ;
1328
1323
1329
1324
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1330
1325
internal static extern int git_refspec_transform (
@@ -1422,7 +1417,7 @@ internal static extern unsafe int git_remote_fetch(
1422
1417
internal static extern unsafe int git_remote_get_fetch_refspecs ( out GitStrArray array , RemoteHandle remote ) ;
1423
1418
1424
1419
[ 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 ) ;
1426
1421
1427
1422
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1428
1423
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(
1717
1712
internal static extern unsafe int git_revwalk_simplify_first_parent ( RevWalkerHandle walk ) ;
1718
1713
1719
1714
[ 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 ) ;
1721
1716
1722
1717
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1723
1718
internal static extern unsafe int git_signature_new (
1724
- out git_signature * signature ,
1719
+ out SignatureHandle signature ,
1725
1720
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1726
1721
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ,
1727
1722
long time ,
1728
1723
int offset ) ;
1729
1724
1730
1725
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1731
1726
internal static extern unsafe int git_signature_now (
1732
- out git_signature * signature ,
1727
+ out SignatureHandle signature ,
1733
1728
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1734
1729
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ) ;
1735
1730
1736
1731
[ 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 ) ;
1738
1733
1739
1734
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1740
1735
internal static extern unsafe int git_stash_save (
1741
1736
out GitOid id ,
1742
1737
RepositoryHandle repo ,
1743
- git_signature * stasher ,
1738
+ SignatureHandle stasher ,
1744
1739
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
1745
1740
StashModifiers flags ) ;
1746
1741
@@ -1897,7 +1892,7 @@ internal static extern unsafe int git_tag_annotation_create(
1897
1892
RepositoryHandle repo ,
1898
1893
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1899
1894
ObjectHandle target ,
1900
- git_signature * signature ,
1895
+ SignatureHandle signature ,
1901
1896
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ) ;
1902
1897
1903
1898
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
@@ -1906,7 +1901,7 @@ internal static extern unsafe int git_tag_create(
1906
1901
RepositoryHandle repo ,
1907
1902
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1908
1903
ObjectHandle target ,
1909
- git_signature * signature ,
1904
+ SignatureHandle signature ,
1910
1905
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
1911
1906
[ MarshalAs ( UnmanagedType . Bool ) ]
1912
1907
bool force ) ;
@@ -1937,7 +1932,7 @@ internal static extern unsafe int git_tag_delete(
1937
1932
internal static extern unsafe string git_tag_name ( ObjectHandle tag ) ;
1938
1933
1939
1934
[ 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 ) ;
1941
1936
1942
1937
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
1943
1938
internal static extern unsafe git_oid * git_tag_target_id ( ObjectHandle tag ) ;
0 commit comments