org.eclipse.jgit.storage.file
Class ReflogReader

java.lang.Object
  extended by org.eclipse.jgit.storage.file.ReflogReader

public class ReflogReader
extends Object

Utility for reading reflog entries


Constructor Summary
ReflogReader(Repository db, String refname)
           
 
Method Summary
 ReflogEntry getLastEntry()
          Get the last entry in the reflog
 List<ReflogEntry> getReverseEntries()
           
 List<ReflogEntry> getReverseEntries(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflogReader

public ReflogReader(Repository db,
                    String refname)
Parameters:
db -
refname -
Method Detail

getLastEntry

public ReflogEntry getLastEntry()
                         throws IOException
Get the last entry in the reflog

Returns:
the latest reflog entry, or null if no log
Throws:
IOException

getReverseEntries

public List<ReflogEntry> getReverseEntries()
                                    throws IOException
Returns:
all reflog entries in reverse order
Throws:
IOException

getReverseEntries

public List<ReflogEntry> getReverseEntries(int max)
                                    throws IOException
Parameters:
max - max numer of entries to read
Returns:
all reflog entries in reverse order
Throws:
IOException


Copyright © 2011. All Rights Reserved.