Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GitLink.cs « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 398ab3217c96ef749c31fdf47e064571c3f0dc59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Diagnostics;

namespace LibGit2Sharp
{
    /// <summary>
    /// Represents a gitlink (a reference to a commit in another Git repository)
    /// </summary>
    [DebuggerDisplay("{DebuggerDisplay,nq}")]
    public class GitLink : GitObject
    {
        /// <summary>
        /// Needed for mocking purposes.
        /// </summary>
        protected GitLink()
        { }

        internal GitLink(Repository repo, ObjectId id)
            : base(repo, id)
        {
        }

        private string DebuggerDisplay
        {
            get { return Id.ToString(); }
        }
    }
}