Top Description Methods
org.eclipse.jgit.lib

public Interface ReflogReader

Known Direct Implementers
org.eclipse.jgit.internal.storage.file.ReflogReaderImpl, org.eclipse.jgit.internal.storage.reftable.ReftableReflogReader
Imports
java.io.IOException, java.util.List

Utility for reading reflog entries
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public ReflogEntry

Returns:

the latest reflog entry, or null if no log
getLastEntry
()

Get the last entry in the reflog

public List<ReflogEntry>

Returns:

all reflog entries in reverse order
getReverseEntries
()

Get all reflog entries in reverse order

public List<ReflogEntry>

Returns:

all reflog entries in reverse order
getReverseEntries
(int
max number of entries to read
max
)

Get all reflog entries in reverse order

public ReflogEntry

Returns:

reflog entry or null if not found
getReverseEntry
(int
a int.
number
)

Get specific entry in the reflog relative to the last entry which is considered entry zero.

Method Detail

getLastEntryback to summary
public ReflogEntry getLastEntry() throws IOException

Get the last entry in the reflog

Returns:ReflogEntry

the latest reflog entry, or null if no log

Exceptions
IOException:
if an IO error occurred
getReverseEntriesback to summary
public List<ReflogEntry> getReverseEntries() throws IOException

Get all reflog entries in reverse order

Returns:List<ReflogEntry>

all reflog entries in reverse order

Exceptions
IOException:
if an IO error occurred
getReverseEntriesback to summary
public List<ReflogEntry> getReverseEntries(int max) throws IOException

Get all reflog entries in reverse order

Parameters
max:int

max number of entries to read

Returns:List<ReflogEntry>

all reflog entries in reverse order

Exceptions
IOException:
if an IO error occurred
getReverseEntryback to summary
public ReflogEntry getReverseEntry(int number) throws IOException

Get specific entry in the reflog relative to the last entry which is considered entry zero.

Parameters
number:int

a int.

Returns:ReflogEntry

reflog entry or null if not found

Exceptions
IOException:
if an IO error occurred