mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature: git bisect
support
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
9eae1eeb81
commit
df5294bcb7
16 changed files with 397 additions and 7 deletions
|
@ -116,6 +116,21 @@ namespace SourceGit.Views
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void StartBisect(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.Repository { IsBisectCommandRunning: false } repo &&
|
||||
repo.InProgressContext == null &&
|
||||
repo.CanCreatePopup())
|
||||
{
|
||||
if (repo.LocalChangesCount > 0)
|
||||
App.RaiseException(repo.FullPath, "You have un-committed local changes. Please discard or stash them first.");
|
||||
else
|
||||
repo.Bisect("start");
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OpenCustomActionMenu(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.Repository repo && sender is Control control)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue