Class ReflogEntryImpl

java.lang.Object
org.eclipse.jgit.internal.storage.file.ReflogEntryImpl
All Implemented Interfaces:
Serializable, ReflogEntry

public class ReflogEntryImpl extends Object implements Serializable, ReflogEntry
Parsed reflog entry
See Also:
  • Field Details

  • Constructor Details

    • ReflogEntryImpl

      ReflogEntryImpl(byte[] raw, int pos)
  • Method Details

    • getOldId

      public ObjectId getOldId()
      Get the commit id before the change
      Specified by:
      getOldId in interface ReflogEntry
      Returns:
      the commit id before the change
    • getNewId

      public ObjectId getNewId()
      Get the commit id after the change
      Specified by:
      getNewId in interface ReflogEntry
      Returns:
      the commit id after the change
    • getWho

      public PersonIdent getWho()
      Get user performing the change
      Specified by:
      getWho in interface ReflogEntry
      Returns:
      user performing the change
    • getComment

      public String getComment()
      Get textual description of the change
      Specified by:
      getComment in interface ReflogEntry
      Returns:
      textual description of the change
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parseCheckout

      public CheckoutEntry parseCheckout()
      Parse checkout
      Specified by:
      parseCheckout in interface ReflogEntry
      Returns:
      a CheckoutEntry with parsed information about a branch switch, or null if the entry is not a checkout