public string Commit(string message) { using (Logger.IndentLog($"Commits all outstanding changes to the repository with message: {message}")) { return(_repository.Commit(message)); } }
public void WriteTextAndCommit(string fileName, string content, string commitMessage = null) { var path = Path.Combine(_repository.Path, fileName); var fileInfo = new FileInfo(path); var message = GetCommitMessage(fileInfo, commitMessage); Directory.CreateDirectory(fileInfo.Directory.FullName); File.WriteAllText(fileInfo.FullName, content); _repository.AddRemove(); _repository.Commit(message); }