feature: auto-follow HEAD when bisecting (#1438)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-06-20 09:19:21 +08:00
parent 957c52aac4
commit c5ad4b837d

View File

@@ -1090,6 +1090,7 @@ namespace SourceGit.ViewModels
var succ = new Commands.Bisect(_fullpath, subcmd).Use(log).Exec();
log.Complete();
var head = new Commands.QueryRevisionByRefName(_fullpath, "HEAD").Result();
Dispatcher.UIThread.Invoke(() =>
{
if (!succ)
@@ -1098,6 +1099,7 @@ namespace SourceGit.ViewModels
App.SendNotification(_fullpath, log.Content.Substring(log.Content.IndexOf('\n')).Trim());
MarkBranchesDirtyManually();
NavigateToCommit(head, true);
SetWatcherEnabled(true);
IsBisectCommandRunning = false;
});