Exemplo n.º 1
0
        private void Preview_Click(object sender, EventArgs e)
        {
            var    cleanUpCmd = GitCommandHelpers.CleanCmd(GetCleanMode(), dryRun: true, directories: RemoveDirectories.Checked, paths: GetPathArgumentFromGui());
            string cmdOutput  = FormProcess.ReadDialog(this, cleanUpCmd);

            PreviewOutput.Text = EnvUtils.ReplaceLinuxNewLinesDependingOnPlatform(cmdOutput);
        }
Exemplo n.º 2
0
 private void Cleanup_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, _reallyCleanupQuestion.Text, _reallyCleanupQuestionCaption.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         var    cleanUpCmd = GitCommandHelpers.CleanCmd(GetCleanMode(), dryRun: false, directories: RemoveDirectories.Checked, paths: GetPathArgumentFromGui());
         string cmdOutput  = FormProcess.ReadDialog(this, cleanUpCmd);
         PreviewOutput.Text = EnvUtils.ReplaceLinuxNewLinesDependingOnPlatform(cmdOutput);
     }
 }
 public void CleanCmd(CleanMode mode, bool dryRun, bool directories, string paths, string expected)
 {
     Assert.AreEqual(expected, GitCommandHelpers.CleanCmd(mode, dryRun, directories, paths).Arguments);
 }