Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.FetchOperation


   *
   */
  public FetchOperationUI(Repository repository, RemoteConfig config,
      int timeout, boolean dryRun) {
    this.repository = repository;
    op = new FetchOperation(repository, config, timeout, dryRun);
    sourceString = NLS.bind("{0} - {1}", repository.getDirectory() //$NON-NLS-1$
        .getParentFile().getName(), config.getName());

  }
View Full Code Here


   * @param dryRun
   */
  public FetchOperationUI(Repository repository, URIish uri,
      List<RefSpec> specs, int timeout, boolean dryRun) {
    this.repository = repository;
    op = new FetchOperation(repository, uri, specs, timeout, dryRun);
    sourceString = uri.toPrivateString();
  }
View Full Code Here

    config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", ConfigConstants.CONFIG_KEY_REMOTE, "origin");
    config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", ConfigConstants.CONFIG_KEY_MERGE, "refs/heads/master");
    config.save();

    FetchOperation fetchOperation = new FetchOperation(repository, remoteConfig, 60, false);
    fetchOperation.run(null);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.op.FetchOperation

Copyright © 2018 www.massapicom. 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.