Interface ReflogEntry

  • All Known Implementing Classes:
    ReflogEntryImpl

    public interface ReflogEntry
    Parsed reflog entry
    Since:
    3.0
    • Field Detail

      • PREFIX_CREATED

        static final String PREFIX_CREATED
        Prefix used in reflog messages when the ref was first created.

        Does not have a corresponding constant in C git, but is untranslated like the other constants.

        Since:
        4.9
        See Also:
        Constant Field Values
    • Method Detail

      • getOldId

        ObjectId getOldId()
        Get the commit id before the change
        Returns:
        the commit id before the change
      • getNewId

        ObjectId getNewId()
        Get the commit id after the change
        Returns:
        the commit id after the change
      • getWho

        PersonIdent getWho()
        Get user performing the change
        Returns:
        user performing the change
      • getComment

        String getComment()
        Get textual description of the change
        Returns:
        textual description of the change
      • parseCheckout

        CheckoutEntry parseCheckout()
        Parse checkout
        Returns:
        a CheckoutEntry with parsed information about a branch switch, or null if the entry is not a checkout