public CheckinOptions BuildShelveSetSpecificCheckinOptions(CheckinOptions sourceCheckinOptions, string commitMessage) { var customCheckinOptions = sourceCheckinOptions.Clone(_globals); customCheckinOptions.CheckinComment = commitMessage; customCheckinOptions.ProcessWorkItemCommands(false); return(customCheckinOptions); }
public CheckinOptions BuildCommitSpecificCheckinOptions(CheckinOptions sourceCheckinOptions, string commitMessage) { var customCheckinOptions = sourceCheckinOptions.Clone(this.globals); customCheckinOptions.CheckinComment = commitMessage; customCheckinOptions.ProcessWorkItemCommands(writer); customCheckinOptions.ProcessCheckinNoteCommands(writer); customCheckinOptions.ProcessForceCommand(writer); return(customCheckinOptions); }
public CheckinOptions BuildShelveSetSpecificCheckinOptions(CheckinOptions sourceCheckinOptions, string commitMessage) { var customCheckinOptions = sourceCheckinOptions.Clone(this.globals); // Use commit message comment in call to ProcessWorkItemCommands customCheckinOptions.CheckinComment = commitMessage; customCheckinOptions.ProcessWorkItemCommands(writer, false); // This means a -m was provided. Override the shelveset comment with the -m value. if (!string.IsNullOrWhiteSpace(sourceCheckinOptions.CheckinComment)) { customCheckinOptions.CheckinComment = sourceCheckinOptions.CheckinComment; } return(customCheckinOptions); }