Examples of parseBody()


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

                RevCommit base = walk.next();
                reporter.debugText(getCommandName(),"checking if remote is at our merge base");
                if (null != base)
                {
                    walk.parseBody(base);

                    //remote is behind
                    if (remoteCommit.equals(base))
                    {
                        reporter.debugText(getCommandName(),"remote equals merge base, branch is newer");
View Full Code Here

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

      TreeWalk treewalk = new TreeWalk(revWalk.getObjectReader());
      treewalk.setRecursive(true);
      treewalk.setFilter(TreeFilter.ANY_DIFF);
      try {
        for (RevCommit parent : commit.getParents())
          revWalk.parseBody(parent);
        diffs = FileDiff.compute(repository, treewalk, commit, parents,
            TreeFilter.ALL);
      } catch (IOException e) {
        diffs = new FileDiff[0];
      } finally {
View Full Code Here

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

  private void loadParents() throws IOException {
    RevWalk revWalk = new RevWalk(repository);
    try {
      for (RevCommit parent : commit.getParents())
        revWalk.parseBody(parent);
    } finally {
      revWalk.release();
    }
  }
View Full Code Here

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

  private RepositoryCommit getCommit(Repository repository, ObjectId objectId) {
    RevWalk walk = new RevWalk(repository);
    try {
      RevCommit commit = walk.parseCommit(objectId);
      for (RevCommit parent : commit.getParents())
        walk.parseBody(parent);
      return new RepositoryCommit(repository, commit);
    } catch (IOException e) {
      Activator.showError(NLS.bind(
          UIText.GitProjectPropertyPage_UnableToGetCommit,
          objectId.name()), e);
View Full Code Here

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

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

      RevCommit result = rw.next();
      if (result != null) {
        rw.parseBody(result);
        return result;
      } else {
        return null;
      }
    } finally {
View Full Code Here

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

    RevWalk walk = new RevWalk(repository);
    try {
      RevCommit commit = walk.parseCommit(ObjectId.fromString(id));
      for (RevCommit parent : commit.getParents())
        walk.parseBody(parent);
      RepositoryCommit repositoryCommit = new RepositoryCommit(
          repository, commit);
      repositoryCommit.setStash(memento.getBoolean(STASH).booleanValue());
      return repositoryCommit;
    } catch (IOException e) {
View Full Code Here

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

    RevWalk walk = new RevWalk(repository);
    try {
      commit = walk.parseCommit(repository.resolve(Constants.HEAD));
      assertNotNull(commit);
      walk.parseBody(commit.getParent(0));
    } finally {
      walk.release();
    }
  }
View Full Code Here

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

    RevWalk walk = new RevWalk(repository);
    try {
      commit = walk.parseCommit(repository.resolve(Constants.HEAD));
      assertNotNull(commit);
      walk.parseBody(commit.getParent(0));
    } finally {
      walk.release();
    }
  }
View Full Code Here

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

    RevWalk walk = new RevWalk(repository);
    try {
      commit = walk.parseCommit(repository.resolve(Constants.HEAD));
      assertNotNull(commit);
      walk.parseBody(commit.getParent(0));
    } finally {
      walk.release();
    }
  }
View Full Code Here

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

                RevCommit base = walk.next();
                reporter.debugText(getName(), "checking if remote is at our merge base");
                if (null != base)
                {
                    walk.parseBody(base);

                    //remote is behind
                    if (remoteCommit.equals(base))
                    {
                        reporter.debugText(getName(), "remote equals merge base, branch is newer");
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.