Package org.eclipse.jgit.storage.file

Examples of org.eclipse.jgit.storage.file.ReflogReader


    }
    if (number < 0)
      throw new RevisionSyntaxException(MessageFormat.format(
          JGitText.get().invalidReflogRevision, time));

    ReflogReader reader = new ReflogReader(this, ref.getName());
    ReflogEntry entry = reader.getReverseEntry(number);
    if (entry == null)
      throw new RevisionSyntaxException(MessageFormat.format(
          JGitText.get().reflogEntryNotFound,
          Integer.valueOf(number), ref.getName()));
View Full Code Here


    if (all) {
      deleteRef(stashRef);
      return null;
    }

    ReflogReader reader = new ReflogReader(repo, R_STASH);
    List<ReflogEntry> entries;
    try {
      entries = reader.getReverseEntries();
    } catch (IOException e) {
      throw new JGitInternalException(JGitText.get().stashDropFailed, e);
    }

    if (stashRefEntry >= entries.size())
View Full Code Here

  public Collection<ReflogEntry> call() throws Exception {
    checkCallable();

    try {
      ReflogReader reader = new ReflogReader(repo, ref);
      return reader.getReverseEntries();
    } catch (IOException e) {
      throw new InvalidRemoteException(MessageFormat.format(
          JGitText.get().cannotRead, ref));
    }
  }
View Full Code Here

    return null;
  }

  private String resolveReflogCheckout(int checkoutNo)
      throws IOException {
    List<ReflogEntry> reflogEntries = new ReflogReader(this, Constants.HEAD)
        .getReverseEntries();
    for (ReflogEntry entry : reflogEntries) {
      CheckoutEntry checkout = entry.parseCheckout();
      if (checkout != null)
        if (checkoutNo-- == 1)
View Full Code Here

    } catch (NumberFormatException nfe) {
      throw new RevisionSyntaxException(MessageFormat.format(
          JGitText.get().invalidReflogRevision, time));
    }
    assert number >= 0;
    ReflogReader reader = new ReflogReader(this, ref.getName());
    ReflogEntry entry = reader.getReverseEntry(number);
    if (entry == null)
      throw new RevisionSyntaxException(MessageFormat.format(
          JGitText.get().reflogEntryNotFound,
          Integer.valueOf(number), ref.getName()));
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.file.ReflogReader

Copyright © 2018 www.massapicom. 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.