/// <summary>
/// Initialize a new rename operation.
/// </summary>
/// <param name="src">operation to read and delete the source.</param>
/// <param name="dst">operation to create (or overwrite) the destination.</param>
protected RefRename(RefUpdate src, RefUpdate dst)
{
source = src;
destination = dst;
Repository repo = destination.getRepository();
string cmd = "";
if (source.getName().StartsWith(Constants.R_HEADS) &&
destination.getName().StartsWith(Constants.R_HEADS))
{
cmd = "Branch: ";
}
setRefLogMessage(cmd + "renamed "
+ repo.ShortenRefName(source.getName()) + " to "
+ repo.ShortenRefName(destination.getName()));
}