Beispiel #1
0
        /// <summary>
        /// Save the specified tag's data over the head revision of the specified tag file.
        /// </summary>
        private void SaveTagToHeadRevision(Tag tag, TagFile tagFile)
        {
            tagFile.SetHeadBinary(tag.Save());
            ILibrary targetLibrary = GetLibrary(tag.TagPath);

            targetLibrary.AddFile(tag.TagPath.Path + "." + tag.TagPath.Extension, tagFile.ToBytes());
        }