@@ -190,6 +190,61 @@ internal static extern int git_branch_remote_name(
190190 RepositorySafeHandle repo ,
191191 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string canonical_branch_name ) ;
192192
193+ [ DllImport ( libgit2 ) ]
194+ internal static extern int git_rebase_init (
195+ out RebaseSafeHandle rebase ,
196+ RepositorySafeHandle repo ,
197+ GitAnnotatedCommitHandle branch ,
198+ GitAnnotatedCommitHandle upstream ,
199+ GitAnnotatedCommitHandle onto ,
200+ GitRebaseOptions options ) ;
201+
202+ [ DllImport ( libgit2 ) ]
203+ internal static extern int git_rebase_open (
204+ out RebaseSafeHandle rebase ,
205+ RepositorySafeHandle repo ,
206+ GitRebaseOptions options ) ;
207+
208+ [ DllImport ( libgit2 ) ]
209+ internal static extern UIntPtr git_rebase_operation_entrycount (
210+ RebaseSafeHandle rebase ) ;
211+
212+ [ DllImport ( libgit2 ) ]
213+ internal static extern UIntPtr git_rebase_operation_current (
214+ RebaseSafeHandle rebase ) ;
215+
216+ [ DllImport ( libgit2 ) ]
217+ internal static extern IntPtr git_rebase_operation_byindex (
218+ RebaseSafeHandle rebase ,
219+ UIntPtr index ) ;
220+
221+ [ DllImport ( libgit2 ) ]
222+ internal static extern int git_rebase_next (
223+ out IntPtr operation ,
224+ RebaseSafeHandle rebase ) ;
225+
226+ [ DllImport ( libgit2 ) ]
227+ internal static extern int git_rebase_commit (
228+ ref GitOid id ,
229+ RebaseSafeHandle rebase ,
230+ SignatureSafeHandle author ,
231+ SignatureSafeHandle committer ,
232+ IntPtr message_encoding ,
233+ IntPtr message ) ;
234+
235+ [ DllImport ( libgit2 ) ]
236+ internal static extern int git_rebase_abort (
237+ RebaseSafeHandle rebase ) ;
238+
239+ [ DllImport ( libgit2 ) ]
240+ internal static extern int git_rebase_finish (
241+ RebaseSafeHandle repo ,
242+ SignatureSafeHandle signature ) ;
243+
244+ [ DllImport ( libgit2 ) ]
245+ internal static extern void git_rebase_free (
246+ IntPtr rebase ) ;
247+
193248 [ DllImport ( libgit2 ) ]
194249 internal static extern int git_remote_rename (
195250 ref GitStrArray problems ,
@@ -1363,6 +1418,12 @@ internal static extern int git_signature_new(
13631418 long time ,
13641419 int offset ) ;
13651420
1421+ [ DllImport ( libgit2 ) ]
1422+ internal static extern int git_signature_now (
1423+ out SignatureSafeHandle signature ,
1424+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ,
1425+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string email ) ;
1426+
13661427 [ DllImport ( libgit2 ) ]
13671428 internal static extern int git_signature_dup ( out IntPtr dest , IntPtr sig ) ;
13681429
0 commit comments