congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MergeBaseGenerator.carryOntoHistory
Code IndexAdd Tabnine to your IDE (free)

How to use
carryOntoHistory
method
in
org.eclipse.jgit.revwalk.MergeBaseGenerator

Best Java code snippets using org.eclipse.jgit.revwalk.MergeBaseGenerator.carryOntoHistory (Showing top 6 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

carryOntoHistory(c, carry);
origin: sonia.jgit/org.eclipse.jgit

  private boolean carryOntoOne(final RevCommit p, final int carry) {
    final boolean haveAll = (p.flags & carry) == carry;
    p.flags |= carry;

    if ((p.flags & recarryMask) == recarryTest) {
      // We were popped without being a merge base, but we just got
      // voted to be one. Inject ourselves back at the front of the
      // pending queue and tell all of our ancestors they are within
      // the merge base now.
      //
      p.flags &= ~POPPED;
      pending.add(p);
      carryOntoHistory(p, branchMask | MERGE_BASE);
      return true;
    }

    // If we already had all carried flags, our parents do too.
    // Return true to stop the caller from running down this leg
    // of the revision graph any further.
    //
    return haveAll;
  }
}
origin: sonia.jgit/org.eclipse.jgit

private void carryOntoHistory(RevCommit c, final int carry) {
  for (;;) {
    final RevCommit[] pList = c.parents;
    if (pList == null)
      return;
    final int n = pList.length;
    if (n == 0)
      return;
    for (int i = 1; i < n; i++) {
      final RevCommit p = pList[i];
      if (!carryOntoOne(p, carry))
        carryOntoHistory(p, carry);
    }
    c = pList[0];
    if (carryOntoOne(c, carry))
      break;
  }
}
origin: sonia.jgit/org.eclipse.jgit

carryOntoHistory(c, carry);
origin: berlam/github-bucket

carryOntoHistory(c, carry);
origin: theonedev/onedev

carryOntoHistory(c, carry);
org.eclipse.jgit.revwalkMergeBaseGeneratorcarryOntoHistory

Popular methods of MergeBaseGenerator

  • <init>
  • add
  • carryOntoOne
  • init
  • next
  • _next
  • carryOntoHistoryInnerLoop

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • Menu (java.awt)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now