Exemplo n.º 1
0
        /// <summary>
        /// Reset current branch to the selected submit
        /// </summary>
        private void MenuResetClick(object sender, EventArgs e)
        {
            string sha = GetSelectedSha();

            if (sha != null)
            {
                FormReset formReset = new FormReset();
                if (formReset.ShowDialog() == DialogResult.OK)
                {
                    string cmd = String.Format("reset {0} {1}", formReset.Cmd, sha);
                    App.Repos.Current.RunCmd(cmd);
                    App.DoRefresh();
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Reset current branch to the selected submit
 /// </summary>
 private void MenuResetClick(object sender, EventArgs e)
 {
     string sha = GetSelectedSha();
     if(sha!=null)
     {
         FormReset formReset = new FormReset();
         if( formReset.ShowDialog()==DialogResult.OK)
         {
             string cmd = String.Format("reset {0} {1}", formReset.Cmd, sha);
             App.Repos.Current.RunCmd(cmd);
             App.DoRefresh();
         }
     }
 }