Examples of peel()


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

      // both RevCommits must be allocated using same RevWalk instance,
      // otherwise isMergedInto returns wrong result!
      RevCommit current = revWalk.parseCommit(commit);
      // tags can point to any object, we only want tags pointing at
      // commits
      RevObject any = revWalk.peel(revWalk.parseAny(ref.getObjectId()));
      if (!(any instanceof RevCommit))
        continue;
      RevCommit newTag = (RevCommit) any;
      if (newTag.getId().equals(commit))
        continue;
View Full Code Here

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

    try {
      Map<String, Ref> tagRefs = getRefs(repo, Constants.R_TAGS);
      for (Ref tagRef : tagRefs.values()) {
        ObjectId objectId = tagRef.getLeaf().getObjectId();
        RevObject revObject = walk.parseAny(objectId);
        RevObject peeledObject = walk.peel(revObject);
        TagNode tagNode = createTagNode(parentNode, repo, tagRef,
            revObject, peeledObject);
        nodes.add(tagNode);
      }
    } catch (IOException e) {
View Full Code Here

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

    RevWalk rw = new RevWalk(getRepository());
    try {
      RevObject obj = rw.parseAny(leaf.getObjectId());
      if (obj instanceof RevTag) {
        return new ObjectIdRef.PeeledTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId(), rw.peel(obj).copy());
      } else {
        return new ObjectIdRef.PeeledNonTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId());
      }
    } finally {
View Full Code Here

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

    RevWalk rw = new RevWalk(getRepository());
    try {
      RevObject obj = rw.parseAny(leaf.getObjectId());
      if (obj instanceof RevTag) {
        return new ObjectIdRef.PeeledTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId(), rw.peel(obj).copy());
      } else {
        return new ObjectIdRef.PeeledNonTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId());
      }
    } finally {
View Full Code Here

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

    RevWalk rw = new RevWalk(getRepository());
    try {
      RevObject obj = rw.parseAny(leaf.getObjectId());
      if (obj instanceof RevTag) {
        return new ObjectIdRef.PeeledTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId(), rw.peel(obj).copy());
      } else {
        return new ObjectIdRef.PeeledNonTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId());
      }
    } finally {
View Full Code Here

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

          refLogMessage = "branch: Reset start-point to branch " //$NON-NLS-1$
              + startPointFullName; // TODO
        else
          refLogMessage = "branch: Created from branch " + baseBranch; //$NON-NLS-1$
      } else {
        startAt = revWalk.peel(revWalk.parseAny(startAt));
        if (exists)
          refLogMessage = "branch: Reset start-point to tag " //$NON-NLS-1$
              + startPointFullName;
        else
          refLogMessage = "branch: Created from tag " //$NON-NLS-1$
View Full Code Here

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

    RevWalk rw = new RevWalk(getRepository());
    try {
      RevObject obj = rw.parseAny(leaf.getObjectId());
      if (obj instanceof RevTag) {
        return new ObjectIdRef.PeeledTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId(), rw.peel(obj).copy());
      } else {
        return new ObjectIdRef.PeeledNonTag(leaf.getStorage(), leaf
            .getName(), leaf.getObjectId());
      }
    } finally {
View Full Code Here

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

      if (obj instanceof RevTag) {
        return new ObjectIdRef.PeeledTag(
            leaf.getStorage(),
            leaf.getName(),
            leaf.getObjectId(),
            rw.peel(obj).copy());
      } else {
        return new ObjectIdRef.PeeledNonTag(
            leaf.getStorage(),
            leaf.getName(),
            leaf.getObjectId());
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.