Package org.eclipse.jgit.api

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


    if (thin != null)
      fetch.setThin(thin.booleanValue());
    if (quiet == null || !quiet.booleanValue())
      fetch.setProgressMonitor(new TextProgressMonitor());

    FetchResult result = fetch.call();
    if (result.getTrackingRefUpdates().isEmpty())
      return;

    showFetchResult(result);
  }
View Full Code Here


        RefSpec spec = new RefSpec(Constants.R_HEADS + remoteBranch + ":" + Constants.R_REMOTES + remote + "/" + branch); //$NON-NLS-1$ //$NON-NLS-2$
        spec = spec.setForceUpdate(force);
        fc.setRefSpecs(spec);
      }
      FetchResult fetchResult = fc.call();
      if (monitor.isCanceled()) {
        return new Status(IStatus.CANCEL, GitActivator.PI_GIT, "Cancelled");
      }
      GitJobUtils.packRefs(db, gitMonitor);
      if (monitor.isCanceled()) {
View Full Code Here

      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }

   @Override
   public Git init(final DirectoryResource dir) throws IOException
View Full Code Here

      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }

   @Override
   public Git init(final DirectoryResource dir) throws IOException
View Full Code Here

      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }

   /**
    * Initialize a new git repository.
View Full Code Here

    command.setCredentialsProvider(credentialsProvider).setTimeout(timeout)
        .setDryRun(dryRun).setProgressMonitor(gitMonitor);
    if (tagOpt != null)
      command.setTagOpt(tagOpt);
    try {
      operationResult = command.call();
    } catch (JGitInternalException e) {
      throw new InvocationTargetException(e.getCause() != null ? e
          .getCause() : e);
    } catch (Exception e) {
      throw new InvocationTargetException(e);
View Full Code Here

      fetch.setDryRun(dryRun);
      fetch.setRemote(remote);
      fetch.setThin(thin);
      fetch.setProgressMonitor(new TextProgressMonitor());

      FetchResult result = fetch.call();
      return result;
   }

   /**
    * Initialize a new git repository.
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.