Examples of call()


Examples of org.eclipse.jgit.api.StashListCommand.call()

    if (stashRev == null)
      return null;

    StashListCommand stashList = git.stashList();
    Collection<RevCommit> stashedRefsCollection = stashList.call();

    int k = 0;
    for (RevCommit rev : stashedRefsCollection)
      if (stashRev.equals(rev.getName()))
        return new StashRef(k);
View Full Code Here

Examples of org.eclipse.jgit.api.StatusCommand.call()

    // List changes
    StatusCommand statusCommand = new Git(db).status();
    if (filterPaths != null && filterPaths.size() > 0)
      for (String path : filterPaths)
        statusCommand.addPath(path);
    org.eclipse.jgit.api.Status status = statusCommand.call();
    Collection<String> added = status.getAdded();
    Collection<String> changed = status.getChanged();
    Collection<String> removed = status.getRemoved();
    Collection<String> modified = status.getModified();
    Collection<String> missing = status.getMissing();
View Full Code Here

Examples of org.eclipse.jgit.api.SubmoduleAddCommand.call()

        .setURI(url);
      if (monitor != null)
        add.setProgressMonitor(monitor);

      try {
        Repository subRepo = add.call();
        if (revision != null) {
          Git sub = new Git(subRepo);
          sub.checkout().setName(findRef(revision, subRepo)).call();
          git.add().addFilepattern(name).call();
        }
View Full Code Here

Examples of org.eclipse.jgit.api.SubmoduleInitCommand.call()

    modulesConfig.setString(ConfigConstants.CONFIG_SUBMODULE_SECTION, path,
        ConfigConstants.CONFIG_KEY_UPDATE, update);
    modulesConfig.save();

    SubmoduleInitCommand command = new SubmoduleInitCommand(db);
    Collection<String> modules = command.call();
    assertNotNull(modules);
    assertEquals(1, modules.size());
    assertEquals(path, modules.iterator().next());

    generator = SubmoduleWalk.forIndex(db);
View Full Code Here

Examples of org.eclipse.jgit.api.SubmoduleStatusCommand.call()

public class SubmoduleStatusTest extends RepositoryTestCase {

  @Test
  public void repositoryWithNoSubmodules() throws GitAPIException {
    SubmoduleStatusCommand command = new SubmoduleStatusCommand(db);
    Map<String, SubmoduleStatus> statuses = command.call();
    assertNotNull(statuses);
    assertTrue(statuses.isEmpty());
  }

  @Test
View Full Code Here

Examples of org.eclipse.jgit.api.SubmoduleSyncCommand.call()

public class SubmoduleSyncTest extends RepositoryTestCase {

  @Test
  public void repositoryWithNoSubmodules() throws GitAPIException {
    SubmoduleSyncCommand command = new SubmoduleSyncCommand(db);
    Map<String, String> modules = command.call();
    assertNotNull(modules);
    assertTrue(modules.isEmpty());
  }

  @Test
View Full Code Here

Examples of org.eclipse.jgit.api.SubmoduleUpdateCommand.call()

public class SubmoduleUpdateTest extends RepositoryTestCase {

  @Test
  public void repositoryWithNoSubmodules() throws GitAPIException {
    SubmoduleUpdateCommand command = new SubmoduleUpdateCommand(db);
    Collection<String> modules = command.call();
    assertNotNull(modules);
    assertTrue(modules.isEmpty());
  }

  @Test
View Full Code Here

Examples of org.eclipse.jgit.api.TagCommand.call()

      if (objectId != null) {
        RevObject revObj = getCommit(repository, objectId);
        tagCommand.setObjectId(revObj);
      }
      tagCommand.setName(tag);
      Ref call = tagCommand.call();
      return call != null ? true : false;
    } catch (Exception e) {
      error(e, repository, "Failed to create tag {1} in repository {0}", objectId, tag);
    }
    return false;
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.IObjectSymbol.call()

            else if (objSymbol.supportsCoercion(TypeConstants.TYPE_MAP))
            {
                EList<ValueType>  args = new BasicEList<ValueType>();
                args.add(new StringLiteralType(propertyId.toString()));
               
                ISymbol prop = objSymbol.call("get", args, propertyId.toString()); //$NON-NLS-1$
               
                if (prop != null)
                {
                    return prop;
                }
View Full Code Here

Examples of org.eclipse.orion.server.git.jobs.DiffCommand.call()

  private boolean handleGetDiffs(HttpServletRequest request, HttpServletResponse response, Repository db, String scope, String pattern) throws Exception {
    DiffCommand command = getDiff(request, response, db, scope, pattern, NullOutputStream.INSTANCE);
    if (command == null)
      return true;

    List<DiffEntry> l = command.call();
    JSONArray diffs = new JSONArray();
    URI diffLocation = getURI(request);
    if (pattern != null) {
      IPath patternPath = new Path(pattern);
      IPath diffPath = new Path(diffLocation.getPath());
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.