@@ -224,11 +224,11 @@ internal static extern int git_rebase_next(
224224 RebaseSafeHandle rebase ) ;
225225
226226 [ DllImport ( libgit2 ) ]
227- internal static extern int git_rebase_commit (
227+ internal static extern unsafe int git_rebase_commit (
228228 ref GitOid id ,
229229 RebaseSafeHandle rebase ,
230- SignatureSafeHandle author ,
231- SignatureSafeHandle committer ,
230+ git_signature * author ,
231+ git_signature * committer ,
232232 IntPtr message_encoding ,
233233 IntPtr message ) ;
234234
@@ -237,9 +237,9 @@ internal static extern int git_rebase_abort(
237237 RebaseSafeHandle rebase ) ;
238238
239239 [ DllImport ( libgit2 ) ]
240- internal static extern int git_rebase_finish (
240+ internal static extern unsafe int git_rebase_finish (
241241 RebaseSafeHandle repo ,
242- SignatureSafeHandle signature ) ;
242+ git_signature * signature ) ;
243243
244244 [ DllImport ( libgit2 ) ]
245245 internal static extern void git_rebase_free (
@@ -285,18 +285,18 @@ internal static extern unsafe int git_clone(
285285 ref GitCloneOptions opts ) ;
286286
287287 [ DllImport ( libgit2 ) ]
288- internal static extern IntPtr git_commit_author ( GitObjectSafeHandle commit ) ;
288+ internal static extern unsafe git_signature * git_commit_author ( GitObjectSafeHandle commit ) ;
289289
290290 [ DllImport ( libgit2 ) ]
291- internal static extern IntPtr git_commit_committer ( GitObjectSafeHandle commit ) ;
291+ internal static extern unsafe git_signature * git_commit_committer ( GitObjectSafeHandle commit ) ;
292292
293293 [ DllImport ( libgit2 ) ]
294294 internal static extern unsafe int git_commit_create_from_ids (
295295 out GitOid id ,
296296 git_repository * repo ,
297297 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string updateRef ,
298- SignatureSafeHandle author ,
299- SignatureSafeHandle committer ,
298+ git_signature * author ,
299+ git_signature * committer ,
300300 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string encoding ,
301301 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
302302 ref GitOid tree ,
@@ -810,8 +810,8 @@ internal static extern unsafe int git_note_create(
810810 out GitOid noteOid ,
811811 git_repository * repo ,
812812 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string notes_ref ,
813- SignatureSafeHandle author ,
814- SignatureSafeHandle committer ,
813+ git_signature * author ,
814+ git_signature * committer ,
815815 ref GitOid oid ,
816816 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string note ,
817817 int force ) ;
@@ -837,8 +837,8 @@ internal static extern unsafe int git_note_read(
837837 internal static extern unsafe int git_note_remove (
838838 git_repository * repo ,
839839 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string notes_ref ,
840- SignatureSafeHandle author ,
841- SignatureSafeHandle committer ,
840+ git_signature * author ,
841+ git_signature * committer ,
842842 ref GitOid oid ) ;
843843
844844 [ DllImport ( libgit2 ) ]
@@ -1102,7 +1102,7 @@ internal static extern ReflogEntrySafeHandle git_reflog_entry_byindex(
11021102 SafeHandle entry ) ;
11031103
11041104 [ DllImport ( libgit2 ) ]
1105- internal static extern IntPtr git_reflog_entry_committer (
1105+ internal static extern unsafe git_signature * git_reflog_entry_committer (
11061106 SafeHandle entry ) ;
11071107
11081108 [ DllImport ( libgit2 ) ]
@@ -1471,30 +1471,30 @@ internal static extern unsafe int git_revparse_ext(
14711471 internal static extern void git_revwalk_simplify_first_parent ( RevWalkerSafeHandle walk ) ;
14721472
14731473 [ DllImport ( libgit2 ) ]
1474- internal static extern void git_signature_free ( IntPtr signature ) ;
1474+ internal static extern unsafe void git_signature_free ( git_signature * signature ) ;
14751475
14761476 [ DllImport ( libgit2 ) ]
1477- internal static extern int git_signature_new (
1478- out SignatureSafeHandle signature ,
1477+ internal static extern unsafe int git_signature_new (
1478+ out git_signature * signature ,
14791479 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
14801480 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ,
14811481 long time ,
14821482 int offset ) ;
14831483
14841484 [ DllImport ( libgit2 ) ]
1485- internal static extern int git_signature_now (
1486- out SignatureSafeHandle signature ,
1485+ internal static extern unsafe int git_signature_now (
1486+ out git_signature * signature ,
14871487 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
14881488 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ) ;
14891489
14901490 [ DllImport ( libgit2 ) ]
1491- internal static extern int git_signature_dup ( out IntPtr dest , IntPtr sig ) ;
1491+ internal static extern unsafe int git_signature_dup ( out git_signature * dest , git_signature * sig ) ;
14921492
14931493 [ DllImport ( libgit2 ) ]
14941494 internal static extern unsafe int git_stash_save (
14951495 out GitOid id ,
14961496 git_repository * repo ,
1497- SignatureSafeHandle stasher ,
1497+ git_signature * stasher ,
14981498 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
14991499 StashModifiers flags ) ;
15001500
@@ -1650,7 +1650,7 @@ internal static extern unsafe int git_tag_annotation_create(
16501650 git_repository * repo ,
16511651 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
16521652 GitObjectSafeHandle target ,
1653- SignatureSafeHandle signature ,
1653+ git_signature * signature ,
16541654 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ) ;
16551655
16561656 [ DllImport ( libgit2 ) ]
@@ -1659,7 +1659,7 @@ internal static extern unsafe int git_tag_create(
16591659 git_repository * repo ,
16601660 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
16611661 GitObjectSafeHandle target ,
1662- SignatureSafeHandle signature ,
1662+ git_signature * signature ,
16631663 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string message ,
16641664 [ MarshalAs ( UnmanagedType . Bool ) ]
16651665 bool force ) ;
@@ -1690,7 +1690,7 @@ internal static extern unsafe int git_tag_delete(
16901690 internal static extern string git_tag_name ( GitObjectSafeHandle tag ) ;
16911691
16921692 [ DllImport ( libgit2 ) ]
1693- internal static extern IntPtr git_tag_tagger ( GitObjectSafeHandle tag ) ;
1693+ internal static extern unsafe git_signature * git_tag_tagger ( GitObjectSafeHandle tag ) ;
16941694
16951695 [ DllImport ( libgit2 ) ]
16961696 internal static extern unsafe git_oid * git_tag_target_id ( GitObjectSafeHandle tag ) ;
0 commit comments