@@ -534,10 +534,10 @@ public void CanCommitWithSignatureFromConfig()
534534
535535 const string relativeFilepath = "new.txt" ;
536536 string filePath = Touch ( repo . Info . WorkingDirectory , relativeFilepath , "null" ) ;
537- repo . Index . Stage ( relativeFilepath ) ;
537+ repo . Stage ( relativeFilepath ) ;
538538
539539 File . AppendAllText ( filePath , "token\n " ) ;
540- repo . Index . Stage ( relativeFilepath ) ;
540+ repo . Stage ( relativeFilepath ) ;
541541
542542 Assert . Null ( repo . Head [ relativeFilepath ] ) ;
543543
@@ -594,7 +594,7 @@ public void CommitCleansUpMergeMetadata()
594594
595595 const string relativeFilepath = "new.txt" ;
596596 Touch ( repo . Info . WorkingDirectory , relativeFilepath , "this is a new file" ) ;
597- repo . Index . Stage ( relativeFilepath ) ;
597+ repo . Stage ( relativeFilepath ) ;
598598
599599 string mergeHeadPath = Touch ( repo . Info . Path , "MERGE_HEAD" , "abcdefabcdefabcdefabcdefabcdefabcdefabcd" ) ;
600600 string mergeMsgPath = Touch ( repo . Info . Path , "MERGE_MSG" , "This is a dummy merge.\n " ) ;
@@ -629,9 +629,9 @@ public void CanCommitALittleBit()
629629
630630 const string relativeFilepath = "new.txt" ;
631631 string filePath = Touch ( repo . Info . WorkingDirectory , relativeFilepath , "null" ) ;
632- repo . Index . Stage ( relativeFilepath ) ;
632+ repo . Stage ( relativeFilepath ) ;
633633 File . AppendAllText ( filePath , "token\n " ) ;
634- repo . Index . Stage ( relativeFilepath ) ;
634+ repo . Stage ( relativeFilepath ) ;
635635
636636 Assert . Null ( repo . Head [ relativeFilepath ] ) ;
637637
@@ -662,7 +662,7 @@ public void CanCommitALittleBit()
662662 Assert . Equal ( commit . Id , repo . Refs . Log ( targetCanonicalName ) . First ( ) . To ) ;
663663
664664 File . WriteAllText ( filePath , "nulltoken commits!\n " ) ;
665- repo . Index . Stage ( relativeFilepath ) ;
665+ repo . Stage ( relativeFilepath ) ;
666666
667667 var author2 = new Signature ( author . Name , author . Email , author . When . AddSeconds ( 5 ) ) ;
668668 Commit commit2 = repo . Commit ( "Are you trying to fork me?" , author2 , author2 ) ;
@@ -683,7 +683,7 @@ public void CanCommitALittleBit()
683683 File . WriteAllText ( filePath , "davidfowl commits!\n " ) ;
684684
685685 var author3 = new Signature ( "David Fowler" , "david.fowler@microsoft.com" , author . When . AddSeconds ( 2 ) ) ;
686- repo . Index . Stage ( relativeFilepath ) ;
686+ repo . Stage ( relativeFilepath ) ;
687687
688688 Commit commit3 = repo . Commit ( "I'm going to branch you backwards in time!" , author3 , author3 ) ;
689689
@@ -709,7 +709,7 @@ private static void AddCommitToRepo(string path)
709709 {
710710 const string relativeFilepath = "test.txt" ;
711711 Touch ( repo . Info . WorkingDirectory , relativeFilepath , "test\n " ) ;
712- repo . Index . Stage ( relativeFilepath ) ;
712+ repo . Stage ( relativeFilepath ) ;
713713
714714 var author = new Signature ( "nulltoken" , "emeric.fermas@gmail.com" , DateTimeOffset . Parse ( "Wed, Dec 14 2011 08:29:03 +0100" ) ) ;
715715 repo . Commit ( "Initial commit" , author , author ) ;
@@ -793,7 +793,7 @@ private static void CreateAndStageANewFile(IRepository repo)
793793 {
794794 string relativeFilepath = string . Format ( "new-file-{0}.txt" , Guid . NewGuid ( ) ) ;
795795 Touch ( repo . Info . WorkingDirectory , relativeFilepath , "brand new content\n " ) ;
796- repo . Index . Stage ( relativeFilepath ) ;
796+ repo . Stage ( relativeFilepath ) ;
797797 }
798798
799799 private static void AssertCommitHasBeenAmended ( IRepository repo , Commit amendedCommit , Commit originalCommit )
@@ -882,7 +882,7 @@ public void CanCommitOnOrphanedBranch()
882882
883883 const string relativeFilepath = "test.txt" ;
884884 Touch ( repo . Info . WorkingDirectory , relativeFilepath , "test\n " ) ;
885- repo . Index . Stage ( relativeFilepath ) ;
885+ repo . Stage ( relativeFilepath ) ;
886886
887887 repo . Commit ( "Initial commit" , Constants . Signature , Constants . Signature ) ;
888888 Assert . Equal ( 1 , repo . Head . Commits . Count ( ) ) ;
@@ -998,16 +998,16 @@ public void CanNotAmendACommitInAWayThatWouldLeadTheNewCommitToBecomeEmpty()
998998 using ( var repo = new Repository ( repoPath ) )
999999 {
10001000 Touch ( repo . Info . WorkingDirectory , "test.txt" , "test\n " ) ;
1001- repo . Index . Stage ( "test.txt" ) ;
1001+ repo . Stage ( "test.txt" ) ;
10021002
10031003 repo . Commit ( "Initial commit" , Constants . Signature , Constants . Signature ) ;
10041004
10051005 Touch ( repo . Info . WorkingDirectory , "new.txt" , "content\n " ) ;
1006- repo . Index . Stage ( "new.txt" ) ;
1006+ repo . Stage ( "new.txt" ) ;
10071007
10081008 repo . Commit ( "One commit" , Constants . Signature , Constants . Signature ) ;
10091009
1010- repo . Index . Remove ( "new.txt" ) ;
1010+ repo . Remove ( "new.txt" ) ;
10111011
10121012 Assert . Throws < EmptyCommitException > ( ( ) => repo . Commit ( "Oops" , Constants . Signature , Constants . Signature ,
10131013 new CommitOptions { AmendPreviousCommit = true } ) ) ;
0 commit comments