Examples of DirCacheIterator


Examples of org.eclipse.jgit.dircache.DirCacheIterator

    assertNotNull(Git.init().setDirectory(new File(db.getWorkTree(), path))
        .call().getRepository());

    TreeWalk walk = new TreeWalk(db);
    DirCacheIterator indexIter = new DirCacheIterator(db.readDirCache());
    FileTreeIterator workTreeIter = new FileTreeIterator(db);
    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertFalse(indexIter.idEqual(workTreeIter));
    assertEquals(ObjectId.zeroId(), workTreeIter.getEntryObjectId());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.