Package org.eclipse.jgit.lib
Interface ReflogEntry
- All Known Implementing Classes:
ReflogEntryImpl
public interface ReflogEntry
Parsed reflog entry
- Since:
- 3.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
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:
-
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:
-
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:
-
-
Method Details
-
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
-