org.eclipse.jgit.lib
Class RefLogWriter

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

public class RefLogWriter
extends java.lang.Object

Utility class to work with reflog files


Constructor Summary
RefLogWriter()
           
 
Method Summary
static void writeReflog(Repository repo, ObjectId oldCommit, ObjectId commit, java.lang.String message, java.lang.String refName)
          Deprecated. rely upon RefUpdate's automatic logging instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefLogWriter

public RefLogWriter()
Method Detail

writeReflog

public static void writeReflog(Repository repo,
                               ObjectId oldCommit,
                               ObjectId commit,
                               java.lang.String message,
                               java.lang.String refName)
                        throws java.io.IOException
Deprecated. rely upon RefUpdate's automatic logging instead.

Writes reflog entry for ref specified by refName

Parameters:
repo - repository to use
oldCommit - previous commit
commit - new commit
message - reflog message
refName - full ref name
Throws:
java.io.IOException