Interface ReflogReader

All Known Implementing Classes:
ReflogReaderImpl, ReftableReflogReader

public interface ReflogReader
Utility for reading reflog entries
Since:
3.0
  • Method Details

    • getLastEntry

      ReflogEntry getLastEntry() throws IOException
      Get the last entry in the reflog
      Returns:
      the latest reflog entry, or null if no log
      Throws:
      IOException
    • getReverseEntries

      List<ReflogEntry> getReverseEntries() throws IOException
      Get all reflog entries in reverse order
      Returns:
      all reflog entries in reverse order
      Throws:
      IOException
    • getReverseEntry

      ReflogEntry getReverseEntry(int number) throws IOException
      Get specific entry in the reflog relative to the last entry which is considered entry zero.
      Parameters:
      number - a int.
      Returns:
      reflog entry or null if not found
      Throws:
      IOException
    • getReverseEntries

      List<ReflogEntry> getReverseEntries(int max) throws IOException
      Get all reflog entries in reverse order
      Parameters:
      max - max number of entries to read
      Returns:
      all reflog entries in reverse order
      Throws:
      IOException