internal Reference(LibGit2Sharp.Reference reference) { innerReference = reference; }
internal SymbolicReference(string canonicalName, string targetIdentifier, Reference target) : base(canonicalName, targetIdentifier) { this.target = target; }
/// <summary> /// Initializes a new instance of an orphaned <see cref = "Branch" /> class. /// <para> /// This <see cref = "Branch" /> instance will point to no commit. /// </para> /// </summary> /// <param name = "repo">The repo.</param> /// <param name = "reference">The reference.</param> internal Branch(Repository repo, Reference reference) : this(repo, reference, r => r.TargetIdentifier) { }
private Branch(Repository repo, Reference reference, Func <Reference, string> canonicalNameSelector) : base(repo, reference, canonicalNameSelector) { trackedBranch = new Lazy <Branch>(ResolveTrackedBranch); }
/// <summary> /// Initializes a new instance of the <see cref = "Branch" /> class. /// </summary> /// <param name = "repo">The repo.</param> /// <param name = "reference">The reference.</param> /// <param name = "canonicalName">The full name of the reference</param> internal Branch(Repository repo, Reference reference, string canonicalName) : this(repo, reference, _ => canonicalName) { }