/// <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(); } } }
/// <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(); } } }