コード例 #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
ファイル: CommitExportFormat.cs プロジェクト: g2384/GitHelper
 public CommitExportFormat(CommitMessageType type, string dateFormat = null)
 {
     MessageType = type;
     SecondPart  = dateFormat;
 }