Top Description Fields Methods
org.eclipse.jgit.lib

public Interface ReflogEntry

Known Direct Implementers
org.eclipse.jgit.internal.storage.file.ReflogEntryImpl

Parsed reflog entry
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final String
PREFIX_CREATED

Prefix used in reflog messages when the ref was first created.

public static final String
PREFIX_FAST_FORWARD

Prefix used in reflog messages when the ref was updated with a fast forward.

public static final String
PREFIX_FORCED_UPDATE

Prefix used in reflog messages when the ref was force updated.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

textual description of the change
getComment
()

Get textual description of the change

public ObjectId

Returns:

the commit id after the change
getNewId
()

Get the commit id after the change

public ObjectId

Returns:

the commit id before the change
getOldId
()

Get the commit id before the change

public PersonIdent

Returns:

user performing the change
getWho
()

Get user performing the change

public CheckoutEntry

Returns:

a org.eclipse.jgit.lib.CheckoutEntry with parsed information about a branch switch, or null if the entry is not a checkout
parseCheckout
()

Parse checkout

Field Detail

PREFIX_CREATEDback to summary
public 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
PREFIX_FAST_FORWARDback to summary
public 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
PREFIX_FORCED_UPDATEback to summary
public 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

Method Detail

getCommentback to summary
public String getComment()

Get textual description of the change

Returns:String

textual description of the change

getNewIdback to summary
public ObjectId getNewId()

Get the commit id after the change

Returns:ObjectId

the commit id after the change

getOldIdback to summary
public ObjectId getOldId()

Get the commit id before the change

Returns:ObjectId

the commit id before the change

getWhoback to summary
public PersonIdent getWho()

Get user performing the change

Returns:PersonIdent

user performing the change

parseCheckoutback to summary
public CheckoutEntry parseCheckout()

Parse checkout

Returns:CheckoutEntry

a org.eclipse.jgit.lib.CheckoutEntry with parsed information about a branch switch, or null if the entry is not a checkout