Class ReflogEntryImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.ReflogEntryImpl
-
- All Implemented Interfaces:
java.io.Serializable,ReflogEntry
public class ReflogEntryImpl extends java.lang.Object implements java.io.Serializable, ReflogEntry
Parsed reflog entry- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcommentprivate ObjectIdnewIdprivate ObjectIdoldIdprivate static longserialVersionUIDprivate PersonIdentwho-
Fields inherited from interface org.eclipse.jgit.lib.ReflogEntry
PREFIX_CREATED, PREFIX_FAST_FORWARD, PREFIX_FORCED_UPDATE
-
-
Constructor Summary
Constructors Constructor Description ReflogEntryImpl(byte[] raw, int pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()Get textual description of the changeObjectIdgetNewId()Get the commit id after the changeObjectIdgetOldId()Get the commit id before the changePersonIdentgetWho()Get user performing the changeCheckoutEntryparseCheckout()Parse checkoutjava.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
oldId
private ObjectId oldId
-
newId
private ObjectId newId
-
who
private PersonIdent who
-
comment
private java.lang.String comment
-
-
Method Detail
-
getOldId
public ObjectId getOldId()
Get the commit id before the change- Specified by:
getOldIdin interfaceReflogEntry- Returns:
- the commit id before the change
-
getNewId
public ObjectId getNewId()
Get the commit id after the change- Specified by:
getNewIdin interfaceReflogEntry- Returns:
- the commit id after the change
-
getWho
public PersonIdent getWho()
Get user performing the change- Specified by:
getWhoin interfaceReflogEntry- Returns:
- user performing the change
-
getComment
public java.lang.String getComment()
Get textual description of the change- Specified by:
getCommentin interfaceReflogEntry- Returns:
- textual description of the change
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parseCheckout
public CheckoutEntry parseCheckout()
Parse checkout- Specified by:
parseCheckoutin interfaceReflogEntry- Returns:
- a
CheckoutEntrywith parsed information about a branch switch, or null if the entry is not a checkout
-
-