public class ReftableReflogReader extends Object implements ReflogReader
| Modifier and Type | Method and Description |
|---|---|
ReflogEntry |
getLastEntry()
Get the last entry in the reflog
|
List<ReflogEntry> |
getReverseEntries()
Get all reflog entries in reverse order
|
List<ReflogEntry> |
getReverseEntries(int max)
Get all reflog entries in reverse order
|
ReflogEntry |
getReverseEntry(int number)
Get specific entry in the reflog relative to the last entry which is
considered entry zero.
|
public ReflogEntry getLastEntry() throws IOException
getLastEntry in interface ReflogReaderIOExceptionpublic List<ReflogEntry> getReverseEntries() throws IOException
getReverseEntries in interface ReflogReaderIOExceptionpublic ReflogEntry getReverseEntry(int number) throws IOException
getReverseEntry in interface ReflogReadernumber - a int.IOExceptionpublic List<ReflogEntry> getReverseEntries(int max) throws IOException
getReverseEntries in interface ReflogReadermax - max number of entries to readIOExceptionCopyright © 2021 Eclipse JGit Project. All rights reserved.