Package org.eclipse.jgit.revwalk

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


  private void getRevCommits(Collection<RevCommit> commits) {
    final RevWalk revWalk = new RevWalk(repo);
    try {
      revWalk.sort(RevSort.COMMIT_TIME_DESC, true);
      revWalk.sort(RevSort.BOUNDARY, true);
      AnyObjectId headId = repo.resolve(Constants.HEAD);
      if (headId != null)
        revWalk.markStart(revWalk.parseCommit(headId));
      // do the walk to get the commits
      long count = 0;
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.