Package org.eclipse.jgit.revwalk

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


      String matchPattern = createMatchPattern();
      Pattern regex = Pattern.compile(matchPattern);
      log("Tag refs [", tagRefs, "]");

      for (Ref tagRef : tagRefs) {
        walk.reset();
        String name = tagRef.getName();
        if (!regex.matcher(name).matches()) {
          log("Skipping tagRef with name [", name, "] as it doesn't match [", matchPattern, "]");
          continue;
        }
View Full Code Here


    walk.setRevFilter(RevFilter.MERGE_BASE);
    walk.markStart(localCommit);
    walk.markStart(trackingCommit);
    RevCommit mergeBase = walk.next();

    walk.reset();
    walk.setRevFilter(RevFilter.ALL);
    int aheadCount = RevWalkUtils.count(walk, localCommit, mergeBase);
    int behindCount = RevWalkUtils.count(walk, trackingCommit, mergeBase);

    return new BranchTrackingStatus(trackingBranch, aheadCount, behindCount);
View Full Code Here

        nextIn = nextSelectionDistance(index, cardinality);
        nextFlg = nextIn == maxCommits ? PackBitmapIndex.FLAG_REUSE : 0;
        mustPick = nextIn == 0;

        BitmapBuilder fullBitmap = commitBitmapIndex.newBitmapBuilder();
        rw.reset();
        rw.markStart(c);
        for (AnyObjectId objectId : result.reuse)
          rw.markUninteresting(rw.parseCommit(objectId));
        rw.setRevFilter(
            PackWriterBitmapWalker.newRevFilter(null, fullBitmap));
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.