Examples of DirCacheBuilder


Examples of org.eclipse.jgit.dircache.DirCacheBuilder

            + diff.getModified(), diff.getModified().isEmpty());
  }

  private void verifyStageState(StageState expected, int... stages)
      throws IOException {
    DirCacheBuilder builder = db.lockDirCache().builder();
    for (int stage : stages) {
      DirCacheEntry entry = createEntry("a", FileMode.REGULAR_FILE,
          stage, "content");
      builder.add(entry);
    }
    builder.commit();

    IndexDiff diff = new IndexDiff(db, Constants.HEAD,
        new FileTreeIterator(db));
    diff.diff();
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.