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
IOException
public List<ReflogEntry> getReverseEntries() throws IOException
IOException
public ReflogEntry getReverseEntry(int number) throws IOException
number
- IOException
public List<ReflogEntry> getReverseEntries(int max) throws IOException
max
- max number of entries to readIOException
Copyright © 2013. All Rights Reserved.