示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GitTag"/> class.
        /// </summary>
        /// <param name="tagManager">The tag manager to get tag information.</param>
        /// <param name="name">The name of the tag.</param>
        /// <param name="shaShort">A abbreviated SHA id.</param>
        /// <param name="sha">The SHA id.</param>
        /// <param name="dateTime">The date time the tag was created.</param>
        public GitTag(ITagManager tagManager, string name, string shaShort, string sha, DateTime dateTime)
        {
            Name     = name;
            Sha      = sha;
            ShaShort = shaShort;
            DateTime = dateTime;

            Message = tagManager.GetMessage(this);
        }