@@ -1110,31 +1110,31 @@ internal static extern IntPtr git_reflog_entry_committer(
11101110 internal static extern string git_reflog_entry_message ( SafeHandle entry ) ;
11111111
11121112 [ DllImport ( libgit2 ) ]
1113- internal static extern int git_refspec_rtransform (
1113+ internal static extern unsafe int git_refspec_rtransform (
11141114 GitBuf buf ,
1115- GitRefSpecHandle refSpec ,
1115+ git_refspec * refSpec ,
11161116 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ) ;
11171117
11181118 [ DllImport ( libgit2 ) ]
11191119 [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1120- internal static extern string git_refspec_string (
1121- GitRefSpecHandle refSpec ) ;
1120+ internal static extern unsafe string git_refspec_string (
1121+ git_refspec * refSpec ) ;
11221122
11231123 [ DllImport ( libgit2 ) ]
1124- internal static extern RefSpecDirection git_refspec_direction ( GitRefSpecHandle refSpec ) ;
1124+ internal static extern unsafe RefSpecDirection git_refspec_direction ( git_refspec * refSpec ) ;
11251125
11261126 [ DllImport ( libgit2 ) ]
11271127 [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1128- internal static extern string git_refspec_dst (
1129- GitRefSpecHandle refSpec ) ;
1128+ internal static extern unsafe string git_refspec_dst (
1129+ git_refspec * refSpec ) ;
11301130
11311131 [ DllImport ( libgit2 ) ]
11321132 [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1133- internal static extern string git_refspec_src (
1134- GitRefSpecHandle refSpec ) ;
1133+ internal static extern unsafe string git_refspec_src (
1134+ git_refspec * refSpec ) ;
11351135
11361136 [ DllImport ( libgit2 ) ]
1137- internal static extern bool git_refspec_force ( GitRefSpecHandle refSpec ) ;
1137+ internal static extern unsafe bool git_refspec_force ( git_refspec * refSpec ) ;
11381138
11391139 [ DllImport ( libgit2 ) ]
11401140 internal static extern int git_remote_autotag ( RemoteSafeHandle remote ) ;
@@ -1187,7 +1187,7 @@ internal static extern int git_remote_fetch(
11871187 internal static extern int git_remote_get_fetch_refspecs ( out GitStrArray array , RemoteSafeHandle remote ) ;
11881188
11891189 [ DllImport ( libgit2 ) ]
1190- internal static extern GitRefSpecHandle git_remote_get_refspec ( RemoteSafeHandle remote , UIntPtr n ) ;
1190+ internal static extern unsafe git_refspec * git_remote_get_refspec ( RemoteSafeHandle remote , UIntPtr n ) ;
11911191
11921192 [ DllImport ( libgit2 ) ]
11931193 internal static extern int git_remote_get_push_refspecs ( out GitStrArray array , RemoteSafeHandle remote ) ;
0 commit comments