public class ReflogReader
extends java.lang.Object
| Constructor and Description |
|---|
ReflogReader(Repository db,
java.lang.String refname) |
| Modifier and Type | Method and Description |
|---|---|
ReflogEntry |
getLastEntry()
Get the last entry in the reflog
|
java.util.List<ReflogEntry> |
getReverseEntries() |
java.util.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, java.lang.String refname)
db - refname - public ReflogEntry getLastEntry() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<ReflogEntry> getReverseEntries() throws java.io.IOException
java.io.IOExceptionpublic ReflogEntry getReverseEntry(int number) throws java.io.IOException
number - java.io.IOExceptionpublic java.util.List<ReflogEntry> getReverseEntries(int max) throws java.io.IOException
max - max number of entries to readjava.io.IOExceptionCopyright © 2012. All Rights Reserved.