Examples of idEqual()


Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

        entry.setFileMode(cIter.getEntryFileMode());
        entry.setObjectIdFromRaw(cIter.idBuffer(), cIter.idOffset());

        DirCacheIterator dcIter = walk.getTree(1,
            DirCacheIterator.class);
        if (dcIter != null && dcIter.idEqual(cIter)) {
          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertTrue(indexIter.idEqual(workTreeIter));
  }

  @Test
  public void submoduleWithNoGitDirectory() throws Exception {
    Git git = new Git(db);
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertFalse(indexIter.idEqual(workTreeIter));
    assertEquals(ObjectId.zeroId(), workTreeIter.getEntryObjectId());
  }

  @Test
  public void submoduleWithNoHead() throws Exception {
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertFalse(indexIter.idEqual(workTreeIter));
    assertEquals(ObjectId.zeroId(), workTreeIter.getEntryObjectId());
  }

  @Test
  public void submoduleDirectoryIterator() throws Exception {
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertTrue(indexIter.idEqual(workTreeIter));
  }

  @Test
  public void submoduleNestedWithHeadMatchingIndex() throws Exception {
    Git git = new Git(db);
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

    walk.addTree(indexIter);
    walk.addTree(workTreeIter);
    walk.setFilter(PathFilter.create(path));

    assertTrue(walk.next());
    assertTrue(indexIter.idEqual(workTreeIter));
  }

  @Test
  public void idOffset() throws Exception {
    Git git = new Git(db);
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

        entry.setFileMode(cIter.getEntryFileMode());
        entry.setObjectIdFromRaw(cIter.idBuffer(), cIter.idOffset());

        DirCacheIterator dcIter = walk.getTree(1,
            DirCacheIterator.class);
        if (dcIter != null && dcIter.idEqual(cIter)) {
          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

        entry.setFileMode(cIter.getEntryFileMode());
        entry.setObjectIdFromRaw(cIter.idBuffer(), cIter.idOffset());

        DirCacheIterator dcIter = walk.getTree(1,
            DirCacheIterator.class);
        if (dcIter != null && dcIter.idEqual(cIter)) {
          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

        final DirCacheEntry entry = new DirCacheEntry(walk.getRawPath());
        entry.setFileMode(cIter.getEntryFileMode());
        entry.setObjectIdFromRaw(cIter.idBuffer(), cIter.idOffset());

        DirCacheIterator dcIter = walk.getTree(1, DirCacheIterator.class);
        if (dcIter != null && dcIter.idEqual(cIter)) {
          DirCacheEntry indexEntry = dcIter.getDirCacheEntry();
          entry.setLastModified(indexEntry.getLastModified());
          entry.setLength(indexEntry.getLength());
        }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCacheIterator.idEqual()

        if (workingTreeIterator == null) {
          // in index, not in workdir => missing
          missing.add(dirCacheIterator.getEntryPathString());
          changesExist = true;
        } else {
          if (!dirCacheIterator.idEqual(workingTreeIterator)) {
            // in index, in workdir, content differs => modified
            modified.add(dirCacheIterator.getEntryPathString());
            changesExist = true;
          }
        }
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.