Пример #1
0
 public virtual void TestLeavingTree()
 {
     GitIndex index = new GitIndex(db);
     index.Add(trash, WriteTrashFile("foo/bar", "foo/bar"));
     index.Add(trash, WriteTrashFile("foobar", "foobar"));
     new IndexTreeWalker(index, db.MapTree(index.WriteTree()), trash, new _AbstractIndexTreeVisitor_144
         ()).Walk();
 }
Пример #2
0
		/// <exception cref="System.IO.IOException"></exception>
		internal WorkDirCheckout(Repository repo, FilePath workDir, GitIndex oldIndex, GitIndex
			 newIndex)
		{
			this.root = workDir;
			this.index = oldIndex;
			this.merge = repo.MapTree(newIndex.WriteTree());
		}