Package org.eclipse.jgit.revplot

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


        final PlotCommit<?> c = (PlotCommit<?>) sel.getFirstElement();
        commentViewer.setInput(c);
        final PlotWalk walk = new PlotWalk(input.getRepository());
        try {
          final RevCommit unfilteredCommit = walk.parseCommit(c);
          for (RevCommit parent : unfilteredCommit.getParents())
            walk.parseBody(parent);
          fileViewer.setInput(unfilteredCommit);
        } catch (IOException e) {
          fileViewer.setInput(c);
View Full Code Here


    public static void main(String[] args) throws IOException, GitAPIException {
        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);
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.