@@ -9,30 +9,25 @@ namespace LibGit2Sharp
9
9
{
10
10
internal class RebaseOperationImpl
11
11
{
12
- private RebaseSafeHandle rebaseOperationHandle ;
13
- private Repository repository ;
14
- private Signature committer ;
15
- private RebaseOptions options ;
16
12
17
- public RebaseOperationImpl ( RebaseSafeHandle rebaseOp , Repository repo , Signature committer , RebaseOptions options )
13
+ /// <summary>
14
+ /// Run a rebase to completion, a conflict, or a requested stop point.
15
+ /// </summary>
16
+ /// <param name="rebaseOperationHandle">Handle to the rebase operation.</param>
17
+ /// <param name="repository">Repository in which rebase operation is being run.</param>
18
+ /// <param name="committer">Committer signature to use for the rebased commits.</param>
19
+ /// <param name="options">Options controlling rebase behavior.</param>
20
+ /// <returns>RebaseResult - describing the result of the rebase operation.</returns>
21
+ public static RebaseResult Run ( RebaseSafeHandle rebaseOperationHandle ,
22
+ Repository repository ,
23
+ Signature committer ,
24
+ RebaseOptions options )
18
25
{
19
- Ensure . ArgumentNotNull ( rebaseOp , "rebaseOp " ) ;
20
- Ensure . ArgumentNotNull ( repo , "repo " ) ;
26
+ Ensure . ArgumentNotNull ( rebaseOperationHandle , "rebaseOperationHandle " ) ;
27
+ Ensure . ArgumentNotNull ( repository , "repository " ) ;
21
28
Ensure . ArgumentNotNull ( committer , "committer" ) ;
22
29
Ensure . ArgumentNotNull ( options , "options" ) ;
23
30
24
- this . rebaseOperationHandle = rebaseOp ;
25
- this . repository = repo ;
26
- this . committer = committer ;
27
- this . options = options ;
28
- }
29
-
30
- /// <summary>
31
- /// Run a rebase to completion or conflict.
32
- /// </summary>
33
- /// <returns>true if completed successfully, false if conflicts encountered.</returns>
34
- public RebaseResult Run ( )
35
- {
36
31
GitCheckoutOptsWrapper checkoutOptionsWrapper = new GitCheckoutOptsWrapper ( options ) ;
37
32
GitCheckoutOpts gitCheckoutOpts = checkoutOptionsWrapper . Options ;
38
33
RebaseResult rebaseResult = null ;
0 commit comments