Examples of findEntry()


Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

        gen.push(null, startCommit);
      else {
        gen.push(null, repo.resolve(Constants.HEAD));
        if (!repo.isBare()) {
          DirCache dc = repo.readDirCache();
          int entry = dc.findEntry(path);
          if (0 <= entry)
            gen.push(null, dc.getEntry(entry).getObjectId());

          File inTree = new File(repo.getWorkTree(), path);
          if (inTree.isFile())
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

        generator.push(null, db.resolve(revision + "^{commit}")); //$NON-NLS-1$
      } else {
        generator.push(null, db.resolve(Constants.HEAD));
        if (!db.isBare()) {
          DirCache dc = db.readDirCache();
          int entry = dc.findEntry(file);
          if (0 <= entry)
            generator.push(null, dc.getEntry(entry).getObjectId());

          File inTree = new File(db.getWorkTree(), file);
          if (inTree.isFile())
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

    assertStageOneToThree(FILE1);
  }

  private void assertStageOneToThree(String name) throws Exception {
    DirCache cache = DirCache.read(db.getIndexFile(), db.getFS());
    int i = cache.findEntry(name);
    DirCacheEntry stage1 = cache.getEntry(i);
    DirCacheEntry stage2 = cache.getEntry(i + 1);
    DirCacheEntry stage3 = cache.getEntry(i + 2);

    assertEquals(DirCacheEntry.STAGE_1, stage1.getStage());
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

        generator.push(null, db.resolve(revision + "^{commit}")); //$NON-NLS-1$
      } else {
        generator.push(null, db.resolve(Constants.HEAD));
        if (!db.isBare()) {
          DirCache dc = db.readDirCache();
          int entry = dc.findEntry(file);
          if (0 <= entry)
            generator.push(null, dc.getEntry(entry).getObjectId());

          File inTree = new File(db.getWorkTree(), file);
          if (db.getFS().isFile(inTree))
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

        gen.push(null, startCommit);
      else {
        gen.push(null, repo.resolve(Constants.HEAD));
        if (!repo.isBare()) {
          DirCache dc = repo.readDirCache();
          int entry = dc.findEntry(path);
          if (0 <= entry)
            gen.push(null, dc.getEntry(entry).getObjectId());

          File inTree = new File(repo.getWorkTree(), path);
          if (repo.getFS().isFile(inTree)) {
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

   */
  public static boolean containsGitModulesFile(Repository repository)
      throws IOException {
    if (repository.isBare()) {
      DirCache dc = repository.readDirCache();
      return (dc.findEntry(Constants.DOT_GIT_MODULES) >= 0);
    }
    File modulesFile = new File(repository.getWorkTree(),
        Constants.DOT_GIT_MODULES);
    return (modulesFile.exists());
  }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

      return false;

    DirCache dirc = null;
    try {
      dirc = map.getRepository().lockDirCache();
      final int first = dirc.findEntry(repoRelativePath);
      if (first < 0) {
        dirc.unlock();
        return false;
      }
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

      throws IOException {
    DirCache cache = repository1.getRepository().readDirCache();
    for (IFile file : fileArr) {
      RepositoryMapping rm = RepositoryMapping.getMapping(file);
      String fileDir = rm.getRepoRelativePath(file);
      boolean tracked = cache.findEntry(fileDir) > -1;
      assertEquals("Wrong tracking state", expectedState, tracked);
    }
  }

  @Test
View Full Code Here

Examples of org.eclipse.jgit.dircache.DirCache.findEntry()

  }

  private ObjectId locateBlobObjectId() throws CoreException {
    try {
      DirCache dc = db.readDirCache();
      int firstIndex = dc.findEntry(path);
      if (firstIndex < 0)
        return null;

      // Try to avoid call to nextEntry if first entry already matches
      DirCacheEntry firstEntry = dc.getEntry(firstIndex);
View Full Code Here

Examples of sample.addressbook.stub.AddressBookServiceAddressBookServiceSOAP11Port_httpStub.findEntry()

           
            FindEntry findEntry = new FindEntry();
           
            findEntry.setParam0("Abby Cadabby");
           
            FindEntryResponse response = stub.findEntry(findEntry);
            Entry responseEntry = response.get_return();
           
            System.out.println("Name   :" + responseEntry.getName());
            System.out.println("Street :" + responseEntry.getStreet());
            System.out.println("City   :" + responseEntry.getCity());
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.