mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 02:15:00 +00:00
feature: auto-follow HEAD when bisecting (#1438)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
957c52aac4
commit
c5ad4b837d
1 changed files with 2 additions and 0 deletions
|
@ -1090,6 +1090,7 @@ namespace SourceGit.ViewModels
|
||||||
var succ = new Commands.Bisect(_fullpath, subcmd).Use(log).Exec();
|
var succ = new Commands.Bisect(_fullpath, subcmd).Use(log).Exec();
|
||||||
log.Complete();
|
log.Complete();
|
||||||
|
|
||||||
|
var head = new Commands.QueryRevisionByRefName(_fullpath, "HEAD").Result();
|
||||||
Dispatcher.UIThread.Invoke(() =>
|
Dispatcher.UIThread.Invoke(() =>
|
||||||
{
|
{
|
||||||
if (!succ)
|
if (!succ)
|
||||||
|
@ -1098,6 +1099,7 @@ namespace SourceGit.ViewModels
|
||||||
App.SendNotification(_fullpath, log.Content.Substring(log.Content.IndexOf('\n')).Trim());
|
App.SendNotification(_fullpath, log.Content.Substring(log.Content.IndexOf('\n')).Trim());
|
||||||
|
|
||||||
MarkBranchesDirtyManually();
|
MarkBranchesDirtyManually();
|
||||||
|
NavigateToCommit(head, true);
|
||||||
SetWatcherEnabled(true);
|
SetWatcherEnabled(true);
|
||||||
IsBisectCommandRunning = false;
|
IsBisectCommandRunning = false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue