コード例 #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();
 }
コード例 #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();
        }