org.eclipse.jgit.storage.file
Class ReflogReader
java.lang.Object
org.eclipse.jgit.storage.file.ReflogReader
public class ReflogReader
- extends java.lang.Object
Utility for reading reflog entries
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflogReader
public ReflogReader(Repository db,
java.lang.String refname)
- Parameters:
db
- refname
-
getLastEntry
public ReflogEntry getLastEntry()
throws java.io.IOException
- Get the last entry in the reflog
- Returns:
- the latest reflog entry, or null if no log
- Throws:
java.io.IOException
getReverseEntries
public java.util.List<ReflogEntry> getReverseEntries()
throws java.io.IOException
- Returns:
- all reflog entries in reverse order
- Throws:
java.io.IOException
getReverseEntry
public ReflogEntry getReverseEntry(int number)
throws java.io.IOException
- Get specific entry in the reflog relative to the last entry which is
considered entry zero.
- Parameters:
number
-
- Returns:
- reflog entry or null if not found
- Throws:
java.io.IOException
getReverseEntries
public java.util.List<ReflogEntry> getReverseEntries(int max)
throws java.io.IOException
- Parameters:
max
- max number of entries to read
- Returns:
- all reflog entries in reverse order
- Throws:
java.io.IOException
Copyright © 2013. All Rights Reserved.