@@ -191,6 +191,62 @@ internal static extern int git_branch_remote_name(
191191 RepositorySafeHandle repo ,
192192 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string canonical_branch_name ) ;
193193
194+ [ DllImport ( libgit2 ) ]
195+ internal static extern int git_rebase_init (
196+ out RebaseSafeHandle rebase ,
197+ RepositorySafeHandle repo ,
198+ GitAnnotatedCommitHandle branch ,
199+ GitAnnotatedCommitHandle upstream ,
200+ GitAnnotatedCommitHandle onto ,
201+ ref GitRebaseOptions options ) ;
202+
203+ [ DllImport ( libgit2 ) ]
204+ internal static extern int git_rebase_open (
205+ out RebaseSafeHandle rebase ,
206+ RepositorySafeHandle repo ) ;
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+ ref GitCheckoutOpts options ) ;
226+
227+ [ DllImport ( libgit2 ) ]
228+ internal static extern int git_rebase_commit (
229+ ref GitOid id ,
230+ RebaseSafeHandle rebase ,
231+ SignatureSafeHandle author ,
232+ SignatureSafeHandle committer ,
233+ IntPtr message_encoding ,
234+ IntPtr message ) ;
235+
236+ [ DllImport ( libgit2 ) ]
237+ internal static extern int git_rebase_abort (
238+ RebaseSafeHandle rebase ) ;
239+
240+ [ DllImport ( libgit2 ) ]
241+ internal static extern int git_rebase_finish (
242+ RebaseSafeHandle repo ,
243+ SignatureSafeHandle signature ,
244+ ref GitRebaseOptions options ) ;
245+
246+ [ DllImport ( libgit2 ) ]
247+ internal static extern void git_rebase_free (
248+ IntPtr rebase ) ;
249+
194250 [ DllImport ( libgit2 ) ]
195251 internal static extern int git_remote_rename (
196252 ref GitStrArray problems ,
@@ -202,7 +258,6 @@ internal delegate int git_remote_rename_problem_cb(
202258 [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( LaxUtf8NoCleanupMarshaler ) ) ] string problematic_refspec ,
203259 IntPtr payload ) ;
204260
205-
206261 [ DllImport ( libgit2 ) ]
207262 internal static extern int git_branch_upstream_name (
208263 GitBuf buf ,
0 commit comments