congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CheckoutEntry
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jgit.lib.CheckoutEntry (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: 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)
    if (sortedRefs.size() < MAX_NUM_MENU_ENTRIES)
      sortedRefs.put(checkout.getToBranch(), ref);
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;
}
org.eclipse.jgit.libCheckoutEntry

Javadoc

Parsed information about a checkout.

Most used methods

  • getFromBranch
  • getToBranch

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Reference (javax.naming)
  • JComboBox (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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