@@ -276,6 +276,12 @@ internal static extern int git_config_delete_entry(
276
276
ConfigurationSafeHandle cfg ,
277
277
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ) ;
278
278
279
+ [ DllImport ( libgit2 ) ]
280
+ internal static extern int git_config_delete_multivar (
281
+ ConfigurationSafeHandle cfg ,
282
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
283
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string regexp ) ;
284
+
279
285
[ DllImport ( libgit2 ) ]
280
286
internal static extern int git_config_find_global ( GitBuf global_config_path ) ;
281
287
@@ -746,7 +752,7 @@ internal static extern int git_note_remove(
746
752
747
753
[ DllImport ( libgit2 ) ]
748
754
internal static extern int git_note_default_ref (
749
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ] out string notes_ref ,
755
+ GitBuf notes_ref ,
750
756
RepositorySafeHandle repo ) ;
751
757
752
758
internal delegate int git_note_foreach_cb (
@@ -781,7 +787,7 @@ internal static extern int git_odb_foreach(
781
787
IntPtr payload ) ;
782
788
783
789
[ DllImport ( libgit2 ) ]
784
- internal static extern int git_odb_open_wstream ( out OdbStreamSafeHandle stream , ObjectDatabaseSafeHandle odb , UIntPtr size , GitObjectType type ) ;
790
+ internal static extern int git_odb_open_wstream ( out OdbStreamSafeHandle stream , ObjectDatabaseSafeHandle odb , Int64 size , GitObjectType type ) ;
785
791
786
792
[ DllImport ( libgit2 ) ]
787
793
internal static extern void git_odb_free ( IntPtr odb ) ;
@@ -998,7 +1004,10 @@ internal static extern string git_refspec_src(
998
1004
internal static extern int git_remote_autotag ( RemoteSafeHandle remote ) ;
999
1005
1000
1006
[ DllImport ( libgit2 ) ]
1001
- internal static extern int git_remote_connect ( RemoteSafeHandle remote , GitDirection direction ) ;
1007
+ internal static extern int git_remote_connect (
1008
+ RemoteSafeHandle remote ,
1009
+ GitDirection direction ,
1010
+ ref GitRemoteCallbacks callbacks ) ;
1002
1011
1003
1012
[ DllImport ( libgit2 ) ]
1004
1013
internal static extern int git_remote_create (
@@ -1035,6 +1044,7 @@ internal static extern int git_remote_delete(
1035
1044
internal static extern int git_remote_fetch (
1036
1045
RemoteSafeHandle remote ,
1037
1046
ref GitStrArray refspecs ,
1047
+ GitFetchOptions fetch_opts ,
1038
1048
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string log_message ) ;
1039
1049
1040
1050
[ DllImport ( libgit2 ) ]
@@ -1066,12 +1076,26 @@ internal static extern int git_remote_push(
1066
1076
1067
1077
[ DllImport ( libgit2 ) ]
1068
1078
internal static extern int git_remote_set_url (
1069
- RemoteSafeHandle remote ,
1079
+ RepositorySafeHandle repo ,
1080
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string remote ,
1081
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string url ) ;
1082
+
1083
+ [ DllImport ( libgit2 ) ]
1084
+ internal static extern int git_remote_add_fetch (
1085
+ RepositorySafeHandle repo ,
1086
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string remote ,
1070
1087
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string url ) ;
1071
1088
1072
1089
[ DllImport ( libgit2 ) ]
1073
1090
internal static extern int git_remote_set_pushurl (
1074
- RemoteSafeHandle remote ,
1091
+ RepositorySafeHandle repo ,
1092
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string remote ,
1093
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string url ) ;
1094
+
1095
+ [ DllImport ( libgit2 ) ]
1096
+ internal static extern int git_remote_add_push (
1097
+ RepositorySafeHandle repo ,
1098
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string remote ,
1075
1099
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string url ) ;
1076
1100
1077
1101
[ DllImport ( libgit2 ) ]
@@ -1096,9 +1120,6 @@ internal static extern int git_remote_lookup(
1096
1120
[ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1097
1121
internal static extern string git_remote_name ( RemoteSafeHandle remote ) ;
1098
1122
1099
- [ DllImport ( libgit2 ) ]
1100
- internal static extern int git_remote_save ( RemoteSafeHandle remote ) ;
1101
-
1102
1123
[ DllImport ( libgit2 ) ]
1103
1124
[ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ]
1104
1125
internal static extern string git_remote_url ( RemoteSafeHandle remote ) ;
@@ -1108,12 +1129,10 @@ internal static extern int git_remote_lookup(
1108
1129
internal static extern string git_remote_pushurl ( RemoteSafeHandle remote ) ;
1109
1130
1110
1131
[ DllImport ( libgit2 ) ]
1111
- internal static extern void git_remote_set_autotag ( RemoteSafeHandle remote , TagFetchMode option ) ;
1112
-
1113
- [ DllImport ( libgit2 ) ]
1114
- internal static extern int git_remote_set_callbacks (
1115
- RemoteSafeHandle remote ,
1116
- ref GitRemoteCallbacks callbacks ) ;
1132
+ internal static extern void git_remote_set_autotag (
1133
+ RepositorySafeHandle repo ,
1134
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1135
+ TagFetchMode option ) ;
1117
1136
1118
1137
internal delegate int remote_progress_callback ( IntPtr str , int len , IntPtr data ) ;
1119
1138
@@ -1125,6 +1144,12 @@ internal delegate int remote_update_tips_callback(
1125
1144
ref GitOid newId ,
1126
1145
IntPtr data ) ;
1127
1146
1147
+ internal delegate int push_negotiation_callback (
1148
+ IntPtr updates , // GitPushUpdate?
1149
+ UIntPtr len ,
1150
+ IntPtr payload
1151
+ ) ;
1152
+
1128
1153
internal delegate int push_update_reference_callback (
1129
1154
IntPtr refName ,
1130
1155
IntPtr status ,
0 commit comments