List of usage examples for org.eclipse.jgit.revplot PlotCommit getShortMessage
public final String getShortMessage()
From source file:de.br0tbox.gitfx.ui.sync.SynchronizationTask.java
License:Apache License
private void refreshCommits() throws MissingObjectException, IncorrectObjectTypeException, IOException { final Repository repository = projectModel.getFxProject().getGit().getRepository(); final RevWalk revWalk = new PlotWalk(repository); revWalk.markStart(revWalk.parseCommit(repository.getRef("master").getObjectId())); final JavaFxCommitList commitList = new JavaFxCommitList(); commitList.source(revWalk);// w ww . j a v a2 s .co m commitList.fillTo(512); PlotCommit<?>[] array = new PlotCommit[commitList.size()]; array = commitList.toArray(array); final List<GitFxCommit> commits = new ArrayList<>(array.length); for (final PlotCommit<?> commit : array) { final GitFxCommit gitFxCommit = new GitFxCommit(commit.abbreviate(7).name(), commit.getAuthorIdent().getName(), commit.getShortMessage(), commit); commits.add(gitFxCommit); } revWalk.release(); Platform.runLater(new Runnable() { @Override public void run() { projectModel.getCommitsProperty().clear(); projectModel.getCommitsProperty().addAll(commits); } }); }