public CheckinOptions BuildShelveSetSpecificCheckinOptions(CheckinOptions sourceCheckinOptions,
            string commitMessage)
        {
            var customCheckinOptions = sourceCheckinOptions.Clone(this.globals);

            customCheckinOptions.CheckinComment = commitMessage;

            customCheckinOptions.ProcessWorkItemCommands(writer, false);

            return customCheckinOptions;
        }
        public CheckinOptions BuildCommitSpecificCheckinOptions(CheckinOptions sourceCheckinOptions, string commitMessage)
        {
            var customCheckinOptions = sourceCheckinOptions.Clone(_globals);

            customCheckinOptions.CheckinComment = commitMessage;

            customCheckinOptions.ProcessWorkItemCommands();

            customCheckinOptions.ProcessCheckinNoteCommands();

            customCheckinOptions.ProcessForceCommand();

            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;
        }