@@ -1110,31 +1110,31 @@ internal static extern IntPtr git_reflog_entry_committer(
1110
1110
internal static extern string git_reflog_entry_message ( SafeHandle entry ) ;
1111
1111
1112
1112
[ DllImport ( libgit2 ) ]
1113
- internal static extern int git_refspec_rtransform (
1113
+ internal static extern unsafe int git_refspec_rtransform (
1114
1114
GitBuf buf ,
1115
- GitRefSpecHandle refSpec ,
1115
+ git_refspec * refSpec ,
1116
1116
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ) ;
1117
1117
1118
1118
[ DllImport ( libgit2 ) ]
1119
1119
[ 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 ) ;
1122
1122
1123
1123
[ DllImport ( libgit2 ) ]
1124
- internal static extern RefSpecDirection git_refspec_direction ( GitRefSpecHandle refSpec ) ;
1124
+ internal static extern unsafe RefSpecDirection git_refspec_direction ( git_refspec * refSpec ) ;
1125
1125
1126
1126
[ DllImport ( libgit2 ) ]
1127
1127
[ 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 ) ;
1130
1130
1131
1131
[ DllImport ( libgit2 ) ]
1132
1132
[ 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 ) ;
1135
1135
1136
1136
[ DllImport ( libgit2 ) ]
1137
- internal static extern bool git_refspec_force ( GitRefSpecHandle refSpec ) ;
1137
+ internal static extern unsafe bool git_refspec_force ( git_refspec * refSpec ) ;
1138
1138
1139
1139
[ DllImport ( libgit2 ) ]
1140
1140
internal static extern int git_remote_autotag ( RemoteSafeHandle remote ) ;
@@ -1187,7 +1187,7 @@ internal static extern int git_remote_fetch(
1187
1187
internal static extern int git_remote_get_fetch_refspecs ( out GitStrArray array , RemoteSafeHandle remote ) ;
1188
1188
1189
1189
[ 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 ) ;
1191
1191
1192
1192
[ DllImport ( libgit2 ) ]
1193
1193
internal static extern int git_remote_get_push_refspecs ( out GitStrArray array , RemoteSafeHandle remote ) ;
0 commit comments