mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
When the user marks the last commit to test, the commits view keeps it selected, and the user has to look for the result. The same happens when lazygit starts after a bisect has finished. After a mark, git checks out the next commit to test, unless there's nothing left to test. In that case, the commit that the user marked last is still the current commit, and the commit marked bad is the first bad commit. So once the current commit is marked, select the commit marked bad instead. Do the same if git never checked out a commit to test, because the good commit is a parent of the bad one. If only skipped commits are left to test, the first bad commit is either one of them or the commit marked bad. Select the commit marked bad then too; it's the newest of the candidates. The commits view loads the commits down to the commit that it selects, so this one is always loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>