Examples of lookupRepository()


Examples of org.eclipse.egit.core.RepositoryCache.lookupRepository()

      for (String repoPath : repoPaths) {
        File gitDir = new File(repoPath);
        if (!gitDir.exists())
          continue;
        try {
          repositories.add(repositoryCache.lookupRepository(gitDir));
        } catch (IOException e) {
          continue;
        }
      }
      sortRepositoriesByName();
View Full Code Here

Examples of org.eclipse.egit.core.RepositoryCache.lookupRepository()

      List<String> configuredRepositories = repositoryUtil
          .getConfiguredRepositories();
      RepositoryCache repositoryCache = Activator.getDefault()
          .getRepositoryCache();
      for (String repoDir : configuredRepositories) {
        Repository repository = repositoryCache
            .lookupRepository(new File(repoDir));
        RevCommit commit = getCommit(repository);
        if (commit != null)
          return new RepositoryCommit(repository, commit);
      }
View Full Code Here

Examples of org.eclipse.egit.core.RepositoryCache.lookupRepository()

          try {
            cache = org.eclipse.egit.core.Activator.getDefault()
                .getRepositoryCache();
          } finally {
            if (cache != null)
              cache.lookupRepository(subRepo.getDirectory())
                  .close();
            subRepo.close();
          }
        }
      }
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.