C# Class GitSharp.Core.RefLogWriter

Utility class to work with reflog files
Show file Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
WriteReflog ( Repository repo, ObjectId oldCommit, ObjectId commit, string message, string refName ) : void

Writes reflog entry for ref specified by refName

Private Methods

Method Description
AppendOneRecord ( ObjectId oldId, ObjectId newId, PersonIdent ident, string msg, Repository db, string refName ) : void
append ( GitSharp.Core.RefRename refRename, string logName, string msg ) : void
append ( RefUpdate u, string msg ) : void
renameTo ( Repository db, RefUpdate from, RefUpdate to ) : void

Method Details

WriteReflog() public static method

Writes reflog entry for ref specified by refName
public static WriteReflog ( Repository repo, ObjectId oldCommit, ObjectId commit, string message, string refName ) : void
repo Repository Repository to use.
oldCommit ObjectId Previous commit.
commit ObjectId New commit.
message string Reflog message
refName string Full ref name
return void