Interface ReflogReader

    • Method Detail

      • getLastEntry

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

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

        ReflogEntry getReverseEntry​(int number)
                             throws java.io.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:
        java.io.IOException
      • getReverseEntries

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