Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (21 sloc) 0.81 kB
namespace LibGit2Sharp
{
/// <summary>
/// A SymbolicReference is a reference that points to another reference
/// </summary>
public class SymbolicReference : Reference
{
/// <summary>
/// Gets the target of this <see cref = "SymbolicReference" />
/// </summary>
public Reference Target { get; internal set; }
/// <summary>
/// Recursively peels the target of the reference until a direct reference is encountered.
/// </summary>
/// <returns>The <see cref = "DirectReference" /> this <see cref = "SymbolicReference" /> points to.</returns>
public override DirectReference ResolveToDirectReference()
{
return (Target == null) ? null : Target.ResolveToDirectReference();
}
}
}
Jump to Line
Something went wrong with that request. Please try again.