Exemplo n.º 1
0
 private void btCheckoutBranch_Click(object sender, EventArgs e)
 {
     string[] revisions = { tbLocal.Text, tbRemote.Text };
     var submoduleCommands = new GitUICommands(Module.GetSubmoduleFullPath(_filename));
     if (!submoduleCommands.StartCheckoutBranch(this, revisions))
         return;
     StageSubmodule();
     DialogResult = DialogResult.OK;
     Close();
 }
Exemplo n.º 2
0
        private void btCheckoutBranch_Click(object sender, EventArgs e)
        {
            string[] revisions         = { tbLocal.Text, tbRemote.Text };
            var      submoduleCommands = new GitUICommands(Module.GetSubmoduleFullPath(_filename));

            if (!submoduleCommands.StartCheckoutBranch(this, revisions))
            {
                return;
            }
            StageSubmodule();
            DialogResult = DialogResult.OK;
            Close();
        }