Skip to content

Commit c5ad4b8

Browse files
committed
feature: auto-follow HEAD when bisecting (#1438)
Signed-off-by: leo <[email protected]>
1 parent 957c52a commit c5ad4b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ViewModels/Repository.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ public void Bisect(string subcmd)
10901090
var succ = new Commands.Bisect(_fullpath, subcmd).Use(log).Exec();
10911091
log.Complete();
10921092

1093+
var head = new Commands.QueryRevisionByRefName(_fullpath, "HEAD").Result();
10931094
Dispatcher.UIThread.Invoke(() =>
10941095
{
10951096
if (!succ)
@@ -1098,6 +1099,7 @@ public void Bisect(string subcmd)
10981099
App.SendNotification(_fullpath, log.Content.Substring(log.Content.IndexOf('\n')).Trim());
10991100

11001101
MarkBranchesDirtyManually();
1102+
NavigateToCommit(head, true);
11011103
SetWatcherEnabled(true);
11021104
IsBisectCommandRunning = false;
11031105
});

0 commit comments

Comments
 (0)