Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.TextProgressMonitor


    fetch.setDryRun(dryRun);
    fetch.setRemote(remote);
    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;
View Full Code Here


  @Override
  protected void run() throws Exception {
    Git git = Git.wrap(db);
    git.gc().setAggressive(aggressive)
        .setProgressMonitor(new TextProgressMonitor()).call();
  }
View Full Code Here

      p.setAllowThin(fixThin);
      if (indexVersion != -1 && p instanceof ObjectDirectoryPackParser) {
        ObjectDirectoryPackParser imp = (ObjectDirectoryPackParser) p;
        imp.setIndexVersion(indexVersion);
      }
      p.parse(new TextProgressMonitor());
      inserter.flush();
    } finally {
      inserter.release();
    }
  }
View Full Code Here

  protected void run() throws Exception {
    Git git = new Git(db);
    PushCommand push = git.push();
    push.setDryRun(dryRun);
    push.setForce(force);
    push.setProgressMonitor(new TextProgressMonitor());
    push.setReceivePack(receivePack);
    push.setRefSpecs(refSpecs);
    if (all)
      push.setPushAll();
    if (tags)
View Full Code Here

  private FetchResult runFetch() throws URISyntaxException, IOException {
    final Transport tn = Transport.open(db, remoteName);
    final FetchResult r;
    try {
      tn.setTagOpt(TagOpt.FETCH_TAGS);
      r = tn.fetch(new TextProgressMonitor(), null);
    } finally {
      tn.close();
    }
    showFetchResult(r);
    return r;
View Full Code Here

        oldTree = new DirCacheIterator(db.readDirCache());
        newTree = new FileTreeIterator(db);
      } else if (newTree == null)
        newTree = new FileTreeIterator(db);

      TextProgressMonitor pm = new TextProgressMonitor();
      pm.setDelayStart(2, TimeUnit.SECONDS);
      diffFmt.setProgressMonitor(pm);
      diffFmt.setPathFilter(pathFilter);
      if (detectRenames != null)
        diffFmt.setDetectRenames(detectRenames.booleanValue());
      if (renameLimit != null && diffFmt.isDetectRenames()) {
View Full Code Here

  }

  private PushResult executePush() throws NotSupportedException,
      TransportException {
    process = new PushProcess(transport, refUpdates);
    return process.execute(new TextProgressMonitor());
  }
View Full Code Here

  private void verifyOpenPack(final boolean thin) throws IOException {
    if (thin) {
      final InputStream is = new ByteArrayInputStream(os.toByteArray());
      final IndexPack indexer = new IndexPack(db, is, packBase);
      try {
        indexer.index(new TextProgressMonitor());
        fail("indexer should grumble about missing object");
      } catch (IOException x) {
        // expected
      }
    }
    final InputStream is = new ByteArrayInputStream(os.toByteArray());
    final IndexPack indexer = new IndexPack(db, is, packBase);
    indexer.setKeepEmpty(true);
    indexer.setFixThin(thin);
    indexer.setIndexVersion(2);
    indexer.index(new TextProgressMonitor());
    pack = new PackFile(indexFile, packFile);
  }
View Full Code Here

  private FetchResult runFetch() throws NotSupportedException,
      URISyntaxException, TransportException {
    final Transport tn = Transport.open(db, remoteName);
    final FetchResult r;
    try {
      r = tn.fetch(new TextProgressMonitor(), null);
    } finally {
      tn.close();
    }
    showFetchResult(tn, r);
    return r;
View Full Code Here

    if (detectRenames) {
      RenameDetector rd = new RenameDetector(db);
      if (renameLimit != null)
        rd.setRenameLimit(renameLimit.intValue());
      rd.addAll(files);
      files = rd.compute(new TextProgressMonitor());
    }
    return files;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.TextProgressMonitor

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.