org.eclipse.jgit.lib
Class ReflogReader

java.lang.Object
  extended by org.eclipse.jgit.lib.ReflogReader

public class ReflogReader
extends java.lang.Object

Utility for reading reflog entries


Nested Class Summary
static class ReflogReader.Entry
          Parsed reflog entry
 
Method Summary
 ReflogReader.Entry getLastEntry()
          Get the last entry in the reflog
 java.util.List<ReflogReader.Entry> getReverseEntries()
           
 java.util.List<ReflogReader.Entry> getReverseEntries(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLastEntry

public ReflogReader.Entry 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<ReflogReader.Entry> getReverseEntries()
                                                     throws java.io.IOException
Returns:
all reflog entries in reverse order
Throws:
java.io.IOException

getReverseEntries

public java.util.List<ReflogReader.Entry> getReverseEntries(int max)
                                                     throws java.io.IOException
Parameters:
max - max numer of entries to read
Returns:
all reflog entries in reverse order
Throws:
java.io.IOException