Package org.eclipse.jgit.lib
Interface ReflogEntry
-
- All Known Implementing Classes:
ReflogEntryImpl
public interface ReflogEntry
Parsed reflog entry- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFIX_CREATED
Prefix used in reflog messages when the ref was first created.static String
PREFIX_FAST_FORWARD
Prefix used in reflog messages when the ref was updated with a fast forward.static String
PREFIX_FORCED_UPDATE
Prefix used in reflog messages when the ref was force updated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 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
CheckoutEntry
with parsed information about a branch switch, or null if the entry is not a checkout
-
-