-
- All Known Implementing Classes:
ReflogEntryImpl
public interface ReflogEntryParsed reflog entry- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringPREFIX_CREATEDPrefix used in reflog messages when the ref was first created.static StringPREFIX_FAST_FORWARDPrefix used in reflog messages when the ref was updated with a fast forward.static StringPREFIX_FORCED_UPDATEPrefix used in reflog messages when the ref was force updated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 checkout
-
-
-
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
-
PREFIX_FAST_FORWARD
static final String PREFIX_FAST_FORWARD
Prefix used in reflog messages when the ref was updated with a fast forward.Untranslated, and exactly matches the untranslated string in C git.
- Since:
- 4.9
- See Also:
- Constant Field Values
-
PREFIX_FORCED_UPDATE
static final String PREFIX_FORCED_UPDATE
Prefix used in reflog messages when the ref was force updated.Untranslated, and exactly matches the untranslated string in C git.
- 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
CheckoutEntrywith parsed information about a branch switch, or null if the entry is not a checkout
-
-