/// <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); }
public CommitExportFormat(CommitMessageType type, string dateFormat = null) { MessageType = type; SecondPart = dateFormat; }