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.String
comment
private ObjectId
newId
private ObjectId
oldId
private static long
serialVersionUID
private PersonIdent
who
-
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.String
getComment()
Get textual description of the changeObjectId
getNewId()
Get the commit id after the changeObjectId
getOldId()
Get the commit id before the changePersonIdent
getWho()
Get user performing the changeCheckoutEntry
parseCheckout()
Parse checkoutjava.lang.String
toString()
-
-
-
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:
getOldId
in interfaceReflogEntry
- Returns:
- the commit id before the change
-
getNewId
public ObjectId getNewId()
Get the commit id after the change- Specified by:
getNewId
in interfaceReflogEntry
- Returns:
- the commit id after the change
-
getWho
public PersonIdent getWho()
Get user performing the change- Specified by:
getWho
in interfaceReflogEntry
- Returns:
- user performing the change
-
getComment
public java.lang.String getComment()
Get textual description of the change- Specified by:
getComment
in interfaceReflogEntry
- Returns:
- textual description of the change
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parseCheckout
public CheckoutEntry parseCheckout()
Parse checkout- Specified by:
parseCheckout
in interfaceReflogEntry
- Returns:
- a
CheckoutEntry
with parsed information about a branch switch, or null if the entry is not a checkout
-
-