Esempio n. 1
0
 internal Reference(LibGit2Sharp.Reference reference)
 {
     innerReference = reference;
 }
Esempio n. 2
0
 internal SymbolicReference(string canonicalName, string targetIdentifier, Reference target)
     : base(canonicalName, targetIdentifier)
 {
     this.target = target;
 }
Esempio n. 3
0
 /// <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)
 {
 }
Esempio n. 4
0
 private Branch(Repository repo, Reference reference, Func <Reference, string> canonicalNameSelector)
     : base(repo, reference, canonicalNameSelector)
 {
     trackedBranch = new Lazy <Branch>(ResolveTrackedBranch);
 }
Esempio n. 5
0
 /// <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)
 {
 }