Tabnine Logo
MergeBaseGenerator.carryOntoOne
Code IndexAdd Tabnine to your IDE (free)

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

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

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

private void carryOntoHistoryInnerLoop(RevCommit c, int carry) {
  for (;;) {
    RevCommit[] parents = c.parents;
    if (parents == null || parents.length == 0) {
      break;
    }
    int e = parents.length - 1;
    for (int i = 0; i < e; i++) {
      RevCommit p = parents[i];
      if (carryOntoOne(p, carry) == CONTINUE) {
        // Walking p will be required, buffer p on stack.
        stack = new CarryStack(stack, p, carry);
      }
      // For other results from carryOntoOne:
      // HAVE_ALL: p has all bits, do nothing to skip that path.
      // CONTINUE_ON_STACK: callee pushed StackElement for p.
    }
    c = parents[e];
    if (carryOntoOne(c, carry) != CONTINUE) {
      break;
    }
  }
}
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: theonedev/onedev

private void carryOntoHistoryInnerLoop(RevCommit c, int carry) {
  for (;;) {
    RevCommit[] parents = c.parents;
    if (parents == null || parents.length == 0) {
      break;
    }
    int e = parents.length - 1;
    for (int i = 0; i < e; i++) {
      RevCommit p = parents[i];
      if (carryOntoOne(p, carry) == CONTINUE) {
        // Walking p will be required, buffer p on stack.
        stack = new CarryStack(stack, p, carry);
      }
      // For other results from carryOntoOne:
      // HAVE_ALL: p has all bits, do nothing to skip that path.
      // CONTINUE_ON_STACK: callee pushed StackElement for p.
    }
    c = parents[e];
    if (carryOntoOne(c, carry) != CONTINUE) {
      break;
    }
  }
}
origin: berlam/github-bucket

private void carryOntoHistoryInnerLoop(RevCommit c, int carry) {
  for (;;) {
    RevCommit[] parents = c.parents;
    if (parents == null || parents.length == 0) {
      break;
    }
    int e = parents.length - 1;
    for (int i = 0; i < e; i++) {
      RevCommit p = parents[i];
      if (carryOntoOne(p, carry) == CONTINUE) {
        // Walking p will be required, buffer p on stack.
        stack = new CarryStack(stack, p, carry);
      }
      // For other results from carryOntoOne:
      // HAVE_ALL: p has all bits, do nothing to skip that path.
      // CONTINUE_ON_STACK: callee pushed StackElement for p.
    }
    c = parents[e];
    if (carryOntoOne(c, carry) != CONTINUE) {
      break;
    }
  }
}
org.eclipse.jgit.revwalkMergeBaseGeneratorcarryOntoOne

Popular methods of MergeBaseGenerator

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

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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