public class ReflogReader extends Object
| Constructor and Description |
|---|
ReflogReader(Repository db,
String refname) |
| Modifier and Type | Method and Description |
|---|---|
ReflogEntry |
getLastEntry()
Get the last entry in the reflog
|
List<ReflogEntry> |
getReverseEntries() |
List<ReflogEntry> |
getReverseEntries(int max) |
ReflogEntry |
getReverseEntry(int number)
Get specific entry in the reflog relative to the last entry which is
considered entry zero.
|
public ReflogReader(Repository db, String refname)
db - refname - public ReflogEntry getLastEntry() throws IOException
IOExceptionpublic List<ReflogEntry> getReverseEntries() throws IOException
IOExceptionpublic ReflogEntry getReverseEntry(int number) throws IOException
number - IOExceptionpublic List<ReflogEntry> getReverseEntries(int max) throws IOException
max - max number of entries to readIOExceptionCopyright © 2013. All Rights Reserved.