Tabnine Logo
CheckoutEntry.getFromBranch
Code IndexAdd Tabnine to your IDE (free)

How to use
getFromBranch
method
in
org.eclipse.jgit.lib.CheckoutEntry

Best Java code snippets using org.eclipse.jgit.lib.CheckoutEntry.getFromBranch (Showing top 4 results out of 315)

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

@Nullable
private String resolveReflogCheckout(int checkoutNo)
    throws IOException {
  ReflogReader reader = getReflogReader(Constants.HEAD);
  if (reader == null) {
    return null;
  }
  List<ReflogEntry> reflogEntries = reader.getReverseEntries();
  for (ReflogEntry entry : reflogEntries) {
    CheckoutEntry checkout = entry.parseCheckout();
    if (checkout != null)
      if (checkoutNo-- == 1)
        return checkout.getFromBranch();
  }
  return null;
}
origin: sonia.jgit/org.eclipse.jgit

@Nullable
private String resolveReflogCheckout(int checkoutNo)
    throws IOException {
  ReflogReader reader = getReflogReader(Constants.HEAD);
  if (reader == null) {
    return null;
  }
  List<ReflogEntry> reflogEntries = reader.getReverseEntries();
  for (ReflogEntry entry : reflogEntries) {
    CheckoutEntry checkout = entry.parseCheckout();
    if (checkout != null)
      if (checkoutNo-- == 1)
        return checkout.getFromBranch();
  }
  return null;
}
origin: berlam/github-bucket

@Nullable
private String resolveReflogCheckout(int checkoutNo)
    throws IOException {
  ReflogReader reader = getReflogReader(Constants.HEAD);
  if (reader == null) {
    return null;
  }
  List<ReflogEntry> reflogEntries = reader.getReverseEntries();
  for (ReflogEntry entry : reflogEntries) {
    CheckoutEntry checkout = entry.parseCheckout();
    if (checkout != null)
      if (checkoutNo-- == 1)
        return checkout.getFromBranch();
  }
  return null;
}
origin: org.eclipse.egit/ui

CheckoutEntry checkout = entry.parseCheckout();
if (checkout != null) {
  Ref ref = localBranches.get(checkout.getFromBranch());
  if (ref != null)
    if (sortedRefs.size() < MAX_NUM_MENU_ENTRIES)
      sortedRefs.put(checkout.getFromBranch(), ref);
  ref = localBranches.get(checkout.getToBranch());
  if (ref != null)
org.eclipse.jgit.libCheckoutEntrygetFromBranch

Javadoc

Get the name of the branch before checkout

Popular methods of CheckoutEntry

  • getToBranch

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • getSystemService (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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