using LibGit2Sharp.Core.Compat;
namespace LibGit2Sharp
{
///
/// A DirectReference points directly to a
///
public class DirectReference : Reference
{
private readonly Lazy targetBuilder;
internal DirectReference(Lazy targetBuilder)
{
this.targetBuilder = targetBuilder;
}
///
/// Gets the target of this
///
public GitObject Target
{
get { return targetBuilder.Value; }
}
///
/// As a is already peeled, invoking this will return the same .
///
/// This instance.
public override DirectReference ResolveToDirectReference()
{
return this;
}
}
}