예제 #1
0
        /// <inheritdoc/>
        public void WriteCommitMessageToFile(string commitMessage, CommitMessageType messageType, bool usingCommitTemplate, bool ensureCommitMessageSecondLineEmpty)
        {
            var formattedCommitMessage = FormatCommitMessage(commitMessage, usingCommitTemplate, ensureCommitMessageSecondLineEmpty);

            string path = messageType == CommitMessageType.Normal ? CommitMessagePath : MergeMessagePath;

            File.WriteAllText(path, formattedCommitMessage, _commitEncoding);
        }
예제 #2
0
 public CommitExportFormat(CommitMessageType type, string dateFormat = null)
 {
     MessageType = type;
     SecondPart  = dateFormat;
 }