Examples of lookupCommit()


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()

    RevWalk rw = new RevWalk(repo);
    try {
      rw.setRetainBody(false);
      rw.setRevFilter(RevFilter.MERGE_BASE);

      RevCommit srcRev = rw.lookupCommit(commit1);
      RevCommit dstRev = rw.lookupCommit(commit2);

      rw.markStart(dstRev);
      rw.markStart(srcRev);
View Full Code Here

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

    try {
      rw.setRetainBody(false);
      rw.setRevFilter(RevFilter.MERGE_BASE);

      RevCommit srcRev = rw.lookupCommit(commit1);
      RevCommit dstRev = rw.lookupCommit(commit2);

      rw.markStart(dstRev);
      rw.markStart(srcRev);

      RevCommit result = rw.next();
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()

  RevCommit findHeadObjectId(@NotNull Repository repo) throws RuntimeException {
    try {
      ObjectId headId = repo.resolve("HEAD");

      RevWalk walk = new RevWalk(repo);
      RevCommit headCommit = walk.lookupCommit(headId);
      walk.dispose();

      log("HEAD is [",headCommit.getName(),"] ");
      return headCommit;
    } catch (IOException ex) {
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()

      ref = repo.peel(ref);
      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
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.