Examples of lookupCommit()


Examples of org.eclipse.jgit.revplot.PlotWalk.lookupCommit()

      rw = new PlotWalk(r);
      if (StringUtils.isEmpty(objectId)) {
        objectId = JGitUtils.getHEADRef(r);
      }

      rw.markStart(rw.lookupCommit(r.resolve(objectId)));

      // default to the items-per-page setting, unless specified
      int maxCommits = settings.getInteger(Keys.web.itemsPerPage, 50);
      int requestedCommits = maxCommits;
      if (!StringUtils.isEmpty(length)) {
View Full Code Here

Examples of org.eclipse.jgit.revplot.PlotWalk.lookupCommit()

      if (id ==  null) {
        response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
        response.getWriter().append("Bad request");
        return;
      }
      rw.markStart(rw.lookupCommit(id));

      // default to the items-per-page setting, unless specified
      int maxCommits = settings.getInteger(Keys.web.itemsPerPage, 50);
      int requestedCommits = maxCommits;
      if (!StringUtils.isEmpty(length)) {
View Full Code Here

Examples of org.eclipse.jgit.revwalk.ObjectWalk.lookupCommit()

    }

    for (CachedPack p : cachedPacks) {
      for (ObjectId d : p.hasObject(objectsLists[Constants.OBJ_COMMIT])) {
        if (baseTrees.size() <= maxBases)
          baseTrees.add(walker.lookupCommit(d).getTree());
        objectsMap.get(d).setEdge();
        typesToPrune |= 1 << Constants.OBJ_COMMIT;
      }
    }
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

      // handle annotated tags
      ObjectId objectId = ref.getPeeledObjectId();
      if (objectId == null)
        objectId = ref.getObjectId();

      RevCommit srcCommit = revWalk.lookupCommit(objectId);

      ObjectId headId = head.getObjectId();
      if (headId == null) {
        revWalk.parseHeaders(srcCommit);
        dco = new DirCacheCheckout(repo,
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

        return new MergeResult(srcCommit, srcCommit, new ObjectId[] {
            null, srcCommit }, MergeStatus.FAST_FORWARD,
            mergeStrategy, null, null);
      }

      RevCommit headCommit = revWalk.lookupCommit(headId);

      if (revWalk.isMergedInto(srcCommit, headCommit)) {
        setCallable(false);
        return new MergeResult(headCommit, srcCommit, new ObjectId[] {
            headCommit, srcCommit },
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

      // handle annotated tags
      ObjectId objectId = ref.getPeeledObjectId();
      if (objectId == null)
        objectId = ref.getObjectId();

      RevCommit srcCommit = revWalk.lookupCommit(objectId);

      ObjectId headId = head.getObjectId();
      if (headId == null) {
        revWalk.parseHeaders(srcCommit);
        DirCacheCheckout dco = new DirCacheCheckout(repo,
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

        return new MergeResult(srcCommit, srcCommit, new ObjectId[] {
            null, srcCommit }, MergeStatus.FAST_FORWARD,
            mergeStrategy, null, null);
      }

      RevCommit headCommit = revWalk.lookupCommit(headId);

      if (revWalk.isMergedInto(srcCommit, headCommit)) {
        setCallable(false);
        return new MergeResult(headCommit, srcCommit, new ObjectId[] {
            headCommit, srcCommit },
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

      // handle annotated tags
      ObjectId objectId = ref.getPeeledObjectId();
      if (objectId == null)
        objectId = ref.getObjectId();

      RevCommit srcCommit = revWalk.lookupCommit(objectId);

      ObjectId headId = head.getObjectId();
      if (headId == null) {
        revWalk.parseHeaders(srcCommit);
        dco = new DirCacheCheckout(repo,
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

        return new MergeResult(srcCommit, srcCommit, new ObjectId[] {
            null, srcCommit }, MergeStatus.FAST_FORWARD,
            mergeStrategy, null, null);
      }

      RevCommit headCommit = revWalk.lookupCommit(headId);

      if (revWalk.isMergedInto(srcCommit, headCommit)) {
        setCallable(false);
        return new MergeResult(headCommit, srcCommit, new ObjectId[] {
            headCommit, srcCommit },
View Full Code Here

Examples of org.eclipse.jgit.revwalk.RevWalk.lookupCommit()

      throws IOException {
    RevWalk revWalk = new RevWalk(db);
    ObjectId oldHeadObjectId = oldHead.getPeeledObjectId();
    if (oldHeadObjectId == null)
      oldHeadObjectId = oldHead.getObjectId();
    RevCommit oldHeadCommit = revWalk.lookupCommit(oldHeadObjectId);
    RevCommit srcCommit = revWalk.lookupCommit(src);
    return revWalk.isMergedInto(oldHeadCommit, srcCommit);
  }
}
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.