void UpdatePreview () { if (format == null) return; ChangeLogWriter writer = new ChangeLogWriter ("./", uinfo); string msg = GettextCatalog.GetString ("My changes made additional changes. This is sample documentation."); writer.AddFile (msg, GettextCatalog.GetString ("./somedir/myfile.ext")); writer.AddFile (msg, GettextCatalog.GetString ("./yourfile.ext")); writer.AddFile (GettextCatalog.GetString ("Some additional changes on another file of the project."), GettextCatalog.GetString ("./otherfile.ext")); format.MaxColumns = 60; writer.MessageFormat = format; textview.Buffer.Text = writer.ToString (); }
void UpdatePreview() { if (format == null) { return; } ChangeLogWriter writer = new ChangeLogWriter("./", uinfo); string msg = "My changes made additional changes. This is sample documentation."; writer.AddFile(msg, "./somedir/myfile.ext"); writer.AddFile(msg, "./yourfile.ext"); writer.AddFile("Some additional changes on another file of the project.", "./otherfile.ext"); format.MaxColumns = 60; writer.MessageFormat = format; textview.Buffer.Text = writer.ToString(); }
public string GeneratePathComment (string path, IEnumerable<ChangeSetItem> items, CommitMessageFormat messageFormat, MonoDevelop.Projects.AuthorInformation userInfo) { var writer = new ChangeLogWriter (path, userInfo); writer.MessageFormat = messageFormat; foreach (ChangeSetItem item in items) { writer.AddFile (item.Comment, item.LocalPath); } return writer.ToString (); }
public string GeneratePathComment(string path, IEnumerable <ChangeSetItem> items, CommitMessageFormat messageFormat, MonoDevelop.Projects.AuthorInformation userInfo) { ChangeLogWriter writer = new ChangeLogWriter(path, userInfo); writer.MessageFormat = messageFormat; foreach (ChangeSetItem item in items) { writer.AddFile(item.Comment, item.LocalPath); } return(writer.ToString()); }