private void stageFile(string filename)
{
FormStatus.ProcessStart processStart = new FormStatus.ProcessStart
(
delegate(FormStatus form)
{
form.AddOutput(string.Format(stageFilename.Text, filename));
string output = GitCommands.GitCommands.RunCmd
(
Settings.GitCommand, "add -- \"" + filename + "\""
);
form.AddOutput(output);
form.Done(string.IsNullOrEmpty(output));
}
);
FormStatus process = new FormStatus(processStart, null);
process.Text = string.Format(stageFilename.Text, filename);
process.ShowDialogOnError();
}