private void OkClick(object sender, EventArgs e)
{
try
{
if (Revision == null)
{
MessageBox.Show("Select 1 revision to create the branch on.", "Branch");
return;
}
var branchCmd = GitCommands.GitCommands.BranchCmd(BranchNameTextBox.Text, Revision.Guid,
CheckoutAfterCreate.Checked);
new FormProcess(branchCmd).ShowDialog();
Close();
}
catch (Exception ex)
{
Trace.WriteLine(ex.Message);
}
}