@@ -12,45 +12,6 @@ public static partial class Commands
1212/// </summary>
1313public static class Rebase
1414{
15- /// <summary>
16- /// The type of operation to be performed in a rebase step.
17- /// </summary>
18- public enum RebaseStepOperation
19- {
20- /// <summary>
21- /// Commit is to be cherry-picked.
22- /// </summary>
23- Pick = 0 ,
24-
25- /// <summary>
26- /// Cherry-pick the commit and edit the commit message.
27- /// </summary>
28- Reword ,
29-
30- /// <summary>
31- /// Cherry-pick the commit but allow user to edit changes.
32- /// </summary>
33- Edit ,
34-
35- /// <summary>
36- /// Commit is to be squashed into previous commit. The commit
37- /// message will be merged with the previous message.
38- /// </summary>
39- Squash ,
40-
41- /// <summary>
42- /// Commit is to be squashed into previous commit. The commit
43- /// message will be discarded.
44- /// </summary>
45- Fixup ,
46-
47- // <summary>
48- // No commit to cherry-pick. Run the given command and continue
49- // if successful.
50- // </summary>
51- // Exec
52- }
53-
5415private unsafe static AnnotatedCommitHandle AnnotatedCommitHandleFromRefHandle ( Repository repository , ReferenceHandle refHandle )
5516{
5617return ( refHandle == null ) ?
@@ -70,6 +31,7 @@ private unsafe static AnnotatedCommitHandle AnnotatedCommitHandleFromRefHandle(R
7031/// <returns>true if completed successfully, false if conflicts encountered.</returns>
7132public static RebaseResult Start ( Repository repository , Branch branch , Branch upstream , Branch onto , Identity committer , RebaseOptions options )
7233{
34+ Ensure . ArgumentNotNull ( repository , "repository" ) ;
7335Ensure . ArgumentNotNull ( upstream , "upstream" ) ;
7436
7537options = options ?? new RebaseOptions ( ) ;
@@ -145,7 +107,7 @@ public static unsafe RebaseResult Continue(Repository repository, Identity commi
145107// TODO: Should we check the pre-conditions for committing here
146108// for instance - what if we had failed on the git_rebase_finish call,
147109// do we want continue to be able to restart afterwords...
148- var rebaseCommitResult = Proxy . git_rebase_commit ( rebase , null , committer ) ;
110+ var rebaseCommitResult = Proxy . git_rebase_commit ( rebase , null , committer , null ) ;
149111
150112// Report that we just completed the step
151113if ( options . RebaseStepCompleted != null )
0 commit comments