We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 488e64d commit 3bf2da2Copy full SHA for 3bf2da2
1 file changed
src/ViewModels/Reword.cs
@@ -68,10 +68,19 @@ public override async Task<bool> Sure()
68
.Use(log)
69
.RunAsync();
70
71
- if (succ && needAutoStash)
72
- await new Commands.Stash(_repo.FullPath)
73
- .Use(log)
74
- .PopAsync("stash@{0}");
+ if (succ)
+ {
+ if (needAutoStash)
+ await new Commands.Stash(_repo.FullPath)
75
+ .Use(log)
76
+ .PopAsync("stash@{0}");
77
+
78
+ if (_repo.SelectedViewIndex == 0)
79
80
+ var head = await new Commands.QueryRevisionByRefName(_repo.FullPath, "HEAD").GetResultAsync();
81
+ _repo.NavigateToCommit(head, true);
82
+ }
83
84
85
log.Complete();
86
return succ;
0 commit comments