Package org.eclipse.jgit.revplot

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


      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


      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

        Repository repository = CookbookHelper.openJGitCookbookRepository();

        PlotWalk revWalk = new PlotWalk(repository);
        ObjectId rootId = repository.resolve("refs/heads/master");
        RevCommit root = revWalk.parseCommit(rootId);
        revWalk.markStart(root);
        PlotCommitList<PlotLane> plotCommitList = new PlotCommitList<PlotLane>();
        plotCommitList.source(revWalk);
        plotCommitList.fillTo(Integer.MAX_VALUE);

        System.out.println("Printing children of commit " + root);
View Full Code Here

                    walk.sort(RevSort.BOUNDARY, true);
                    if (model.hasPaths()) {
                        walk.setTreeFilter(model.createPathFilter());
                    }
                    for (Ref ref : model.getReferences())
                        walk.markStart(walk.parseCommit(ref.getObjectId()));
                    model.getCommitList().source(walk);
                    model.getCommitList().fillTo(Integer.MAX_VALUE);
                } catch (Throwable error) {
                    model.setContent(error.getMessage());
                } finally {
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.