1- using System ;
2- using System . Collections . Generic ;
3- using System . IO ;
1+ using System . Collections . Generic ;
42using System . Linq ;
5- using System . Text ;
6- using LibGit2Sharp . Core ;
73using LibGit2Sharp . Tests . TestHelpers ;
84using Xunit ;
95using Xunit . Extensions ;
@@ -56,7 +52,7 @@ public void CanRebase(string initialBranchName,
5652
5753 RebaseOptions options = new RebaseOptions ( )
5854 {
59- RebaseStepStarting = x =>
55+ RebaseStepStarting = x =>
6056 {
6157 beforeStepCallCount ++ ;
6258 PreRebaseCommits . Add ( x . StepInfo . Commit ) ;
@@ -346,7 +342,7 @@ public void CanAbortRebase()
346342 Assert . Equal ( 0 , rebaseResult . CompletedStepCount ) ;
347343 Assert . Equal ( 3 , rebaseResult . TotalStepCount ) ;
348344
349- repo . Rebase . Abort ( Constants . Signature ) ;
345+ repo . Rebase . Abort ( ) ;
350346 Assert . False ( repo . RetrieveStatus ( ) . IsDirty ) ;
351347 Assert . True ( repo . Index . IsFullyMerged ) ;
352348 Assert . Equal ( CurrentOperation . None , repo . Info . CurrentOperation ) ;
@@ -396,7 +392,7 @@ public void RebaseOperationsWithoutRebasingThrow()
396392 repo . Rebase . Continue ( Constants . Signature , new RebaseOptions ( ) ) ) ;
397393
398394 Assert . Throws < NotFoundException > ( ( ) =>
399- repo . Rebase . Abort ( Constants . Signature ) ) ;
395+ repo . Rebase . Abort ( ) ) ;
400396 }
401397 }
402398
@@ -447,7 +443,7 @@ public void CanRebaseHandlePatchAlreadyApplied()
447443
448444 RebaseOptions options = new RebaseOptions ( )
449445 {
450- RebaseStepCompleted = x =>
446+ RebaseStepCompleted = x =>
451447 {
452448 rebaseResults . Add ( new CompletedRebaseStepInfo ( x . Commit , x . WasPatchAlreadyApplied ) ) ;
453449 }
@@ -519,7 +515,7 @@ private void ConstructRebaseTestRepository(Repository repo)
519515 repo . Stage ( filePathC ) ;
520516 commit = repo . Commit ( "commit 3" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
521517
522- Branch masterBranch1 = repo . CreateBranch ( masterBranch1Name , commit , Constants . Signature ) ;
518+ Branch masterBranch1 = repo . CreateBranch ( masterBranch1Name , commit ) ;
523519
524520 Touch ( workdir , filePathB , string . Join ( lineEnding , fileContentB1 , fileContentB2 ) ) ;
525521 repo . Stage ( filePathB ) ;
@@ -533,7 +529,7 @@ private void ConstructRebaseTestRepository(Repository repo)
533529 repo . Stage ( filePathB ) ;
534530 commit = repo . Commit ( "commit 6" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
535531
536- repo . CreateBranch ( topicBranch1Name , commit , Constants . Signature ) ;
532+ repo . CreateBranch ( topicBranch1Name , commit ) ;
537533
538534 Touch ( workdir , filePathC , string . Join ( lineEnding , fileContentC1 , fileContentC2 ) ) ;
539535 repo . Stage ( filePathC ) ;
@@ -547,7 +543,7 @@ private void ConstructRebaseTestRepository(Repository repo)
547543 repo . Stage ( filePathC ) ;
548544 commit = repo . Commit ( "commit 9" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
549545
550- repo . CreateBranch ( topicBranch2Name , commit , Constants . Signature ) ;
546+ repo . CreateBranch ( topicBranch2Name , commit ) ;
551547
552548 repo . Checkout ( masterBranch1 . Tip ) ;
553549 Touch ( workdir , filePathD , fileContentD1 ) ;
@@ -562,13 +558,13 @@ private void ConstructRebaseTestRepository(Repository repo)
562558 repo . Stage ( filePathD ) ;
563559 commit = repo . Commit ( "commit 12" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
564560
565- repo . CreateBranch ( masterBranch2Name , commit , Constants . Signature ) ;
561+ repo . CreateBranch ( masterBranch2Name , commit ) ;
566562
567563 // Create commit / branch that conflicts with T1 and T2
568564 Touch ( workdir , filePathB , string . Join ( lineEnding , fileContentB1 , fileContentB2 + fileContentB3 + fileContentB4 ) ) ;
569565 repo . Stage ( filePathB ) ;
570566 commit = repo . Commit ( "commit 13" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
571- repo . CreateBranch ( conflictBranch1Name , commit , Constants . Signature ) ;
567+ repo . CreateBranch ( conflictBranch1Name , commit ) ;
572568 }
573569 }
574570}
0 commit comments