Examples of parseBody()


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

        rw.markUninteresting(rw.parseCommit(cmd.getOldId()));
      }

      RevCommit c;
      while ((c = rw.next()) != null) {
        rw.parseBody(c);
        long ticketNumber = identifyTicket(c, true);
        if (ticketNumber == 0L || mergedTickets.containsKey(ticketNumber)) {
          continue;
        }
View Full Code Here

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

              break;
            }

            if (count < boundary || count >= (patchset.commits - boundary)) {

              walk.parseBody(c);
              sendError("   {0}  {1}", c.getName().substring(0, shortCommitIdLen),
                StringUtils.trimString(c.getShortMessage(), 60));

            } else if (count == boundary) {
View Full Code Here

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

        rw.markUninteresting(rw.parseCommit(cmd.getOldId()));
      }

      RevCommit c;
      while ((c = rw.next()) != null) {
        rw.parseBody(c);
        long ticketNumber = identifyTicket(c, true);
        if (ticketNumber == 0L || mergedTickets.containsKey(ticketNumber)) {
          continue;
        }
View Full Code Here

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

    try {
      for (int i = 0; i < commits.length; i++)
        walk.markStart(walk.parseCommit(commits[i]));
      final RevCommit base = walk.next();
      if (base != null)
        walk.parseBody(base);
      return base;
    } catch (IOException e) {
      throw new GitException(e, repository);
    } finally {
      walk.release();
View Full Code Here

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

    // Load parents
    RevWalk walk = new RevWalk(db);
    try {
      for (RevCommit parent : commit.getParents())
        walk.parseBody(parent);
    } finally {
      walk.release();
    }

    assertEquals(1, commit.getParent(1).getParentCount());
View Full Code Here

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

    writeTrashFile("file", "content2");
    RevCommit stashedWorkTree = Git.wrap(db).stashCreate().call();
    validateStashedCommit(stashedWorkTree);
    RevWalk walk = new RevWalk(db);
    RevCommit stashedIndex = stashedWorkTree.getParent(1);
    walk.parseBody(stashedIndex);
    walk.parseBody(stashedIndex.getTree());
    walk.parseBody(stashedIndex.getParent(0));
    List<DiffEntry> workTreeStashAgainstWorkTree = diffWorkingAgainstHead(stashedWorkTree);
    assertEquals(1, workTreeStashAgainstWorkTree.size());
    List<DiffEntry> workIndexAgainstWorkTree = diffIndexAgainstHead(stashedWorkTree);
View Full Code Here

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

    RevCommit stashedWorkTree = Git.wrap(db).stashCreate().call();
    validateStashedCommit(stashedWorkTree);
    RevWalk walk = new RevWalk(db);
    RevCommit stashedIndex = stashedWorkTree.getParent(1);
    walk.parseBody(stashedIndex);
    walk.parseBody(stashedIndex.getTree());
    walk.parseBody(stashedIndex.getParent(0));
    List<DiffEntry> workTreeStashAgainstWorkTree = diffWorkingAgainstHead(stashedWorkTree);
    assertEquals(1, workTreeStashAgainstWorkTree.size());
    List<DiffEntry> workIndexAgainstWorkTree = diffIndexAgainstHead(stashedWorkTree);
    assertEquals(1, workIndexAgainstWorkTree.size());
View Full Code Here

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

    validateStashedCommit(stashedWorkTree);
    RevWalk walk = new RevWalk(db);
    RevCommit stashedIndex = stashedWorkTree.getParent(1);
    walk.parseBody(stashedIndex);
    walk.parseBody(stashedIndex.getTree());
    walk.parseBody(stashedIndex.getParent(0));
    List<DiffEntry> workTreeStashAgainstWorkTree = diffWorkingAgainstHead(stashedWorkTree);
    assertEquals(1, workTreeStashAgainstWorkTree.size());
    List<DiffEntry> workIndexAgainstWorkTree = diffIndexAgainstHead(stashedWorkTree);
    assertEquals(1, workIndexAgainstWorkTree.size());
    List<DiffEntry> indexStashAgainstWorkTree = diffIndexAgainstWorking(stashedWorkTree);
View Full Code Here

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

      try {
        RevObject obj = rw.parseAny(objectId);
        while (obj instanceof RevTag) {
          show((RevTag) obj);
          obj = ((RevTag) obj).getObject();
          rw.parseBody(obj);
        }

        switch (obj.getType()) {
        case Constants.OBJ_COMMIT:
          show(rw, (RevCommit) obj);
View Full Code Here

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

    Git git = new Git(db);
    RevWalk walk = new RevWalk(db);
    try {
      ObjectId objectId = db.resolve(commitId);
      RevCommit revCommit = walk.lookupCommit(objectId);
      walk.parseBody(revCommit);

      GitTagHandlerV1.tag(git, revCommit, tagName);

      URI cloneLocation = BaseToCloneConverter.getCloneLocation(getURI(request), BaseToCloneConverter.COMMIT_REFRANGE);
      Commit commit = new Commit(cloneLocation, db, revCommit, null);
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.